Mercurial > libervia-backend
comparison sat/core/constants.py @ 3490:509f7a1c67dc
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
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 23 Mar 2021 21:21:00 +0100 |
parents | 7550ae9cfbac |
children | 2715da5b2aa7 |
comparison
equal
deleted
inserted
replaced
3489:d71a163c0861 | 3490:509f7a1c67dc |
---|---|
379 EXIT_OK = 0 | 379 EXIT_OK = 0 |
380 EXIT_ERROR = 1 # generic error, when nothing else match | 380 EXIT_ERROR = 1 # generic error, when nothing else match |
381 EXIT_BAD_ARG = 2 # arguments given by user are bad | 381 EXIT_BAD_ARG = 2 # arguments given by user are bad |
382 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge | 382 EXIT_BRIDGE_ERROR = 3 # can't connect to bridge |
383 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method | 383 EXIT_BRIDGE_ERRBACK = 4 # something went wrong when calling a bridge method |
384 EXIT_BACKEND_NOT_FOUND = 5 # can't find backend with this bride | |
384 EXIT_NOT_FOUND = 16 # an item required by a command was not found | 385 EXIT_NOT_FOUND = 16 # an item required by a command was not found |
385 EXIT_DATA_ERROR = 17 # data needed for a command is invalid | 386 EXIT_DATA_ERROR = 17 # data needed for a command is invalid |
386 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available | 387 EXIT_MISSING_FEATURE = 18 # a needed plugin or feature is not available |
387 EXIT_CONFLICT = 19 # an item already exists | 388 EXIT_CONFLICT = 19 # an item already exists |
388 EXIT_USER_CANCELLED = 20 # user cancelled action | 389 EXIT_USER_CANCELLED = 20 # user cancelled action |