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

Commit

Permalink
Merge pull request #137 from Tropicalista/patch-5
Browse files Browse the repository at this point in the history
Fix error when catch is executed
  • Loading branch information
rashidlaasri committed Feb 4, 2018
2 parents 7a6ef53 + 8fbfdea commit 2ee4139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helpers/DatabaseManager.php
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 2ee4139

Please sign in to comment.