return appropriate response from within catch
This commit is contained in:
parent
25d1bdc626
commit
b89ee61bba
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,8 @@ class SelfUpdateController extends BaseController
|
|||
}
|
||||
catch(GitException $e) {
|
||||
info($e->getMessage());
|
||||
return response()->json(['message'=>$e->getMessage()], 500);
|
||||
|
||||
}
|
||||
info("Are there any changes to pull? " . $repo->hasChanges());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue