Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
FIx error when catch is executed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tropicalista authored Feb 3, 2018
1 parent 7a6ef53 commit 8fbfdea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helpers/DatabaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private function migrate($outputLog)
Artisan::call('migrate', ["--force"=> true], $outputLog);
}
catch(Exception $e){
return $this->response($e->getMessage());
return $this->response($e->getMessage(), $outputLog);
}

return $this->seed($outputLog);
Expand All @@ -55,7 +55,7 @@ private function seed($outputLog)
Artisan::call('db:seed', [], $outputLog);
}
catch(Exception $e){
return $this->response($e->getMessage());
return $this->response($e->getMessage(), $outputLog);
}

return $this->response(trans('installer_messages.final.finished'), 'success', $outputLog);
Expand All @@ -69,7 +69,7 @@ private function seed($outputLog)
* @param collection $outputLog
* @return array
*/
private function response($message, $status = 'danger', $outputLog)
private function response($message, $outputLog, $status = 'danger')
{
return [
'status' => $status,
Expand Down

0 comments on commit 8fbfdea

Please sign in to comment.