mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
return appropriate response from within catch
This commit is contained in:
parent
25d1bdc626
commit
b89ee61bba
@ -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…
x
Reference in New Issue
Block a user