mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 15:34:37 -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) {
|
catch(GitException $e) {
|
||||||
info($e->getMessage());
|
info($e->getMessage());
|
||||||
|
return response()->json(['message'=>$e->getMessage()], 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
info("Are there any changes to pull? " . $repo->hasChanges());
|
info("Are there any changes to pull? " . $repo->hasChanges());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user