frontends: use new EXIT_BACKEND_NOT_FOUND exit code:
- new EXIT_BACKEND_NOT_FOUND (5) is used when frontend can't find backend with the bridge. It differs from EXIT_BRIDGE_ERROR (3) which is used when something went wrong when connecting to backend. - use this exit code in quick app and in jp
This commit is contained in:
parent
881a638821
commit
24a4b12ac4
1 changed files with 6 additions and 3 deletions
|
|
@ -368,10 +368,10 @@ class QuickApp(object):
|
|||
def _bridgeEb(self, failure):
|
||||
if isinstance(failure, exceptions.BridgeExceptionNoService):
|
||||
print((_("Can't connect to SàT backend, are you sure it's launched ?")))
|
||||
sys.exit(1)
|
||||
sys.exit(C.EXIT_BACKEND_NOT_FOUND)
|
||||
elif isinstance(failure, exceptions.BridgeInitError):
|
||||
print((_("Can't init bridge")))
|
||||
sys.exit(1)
|
||||
sys.exit(C.EXIT_BRIDGE_ERROR)
|
||||
else:
|
||||
print((_("Error while initialising bridge: {}".format(failure))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue