Skip to content

Commit 049414e

Browse files
authored
Add missing exit codes on the python's side (#857)
* add some missing exit codes * add some missing exit codes
1 parent e8103e7 commit 049414e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

python/lib/exitcode.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
CORRUPTED_FILE = 22 # if mismatch between file's hash & the hash stored in db
2525
SELECT_FAILURE = 23 # if a SELECT query did not return anything
2626
UPDATE_FAILURE = 24 # if an UPDATE query failed
27+
BAD_CONFIG_SETTING = 25 # if bad config setting
28+
MISSING_CONFIG_SETTING = 26 # if config setting has not been set in the Config module
2729

2830
# -- Common configuration failures (exit codes from 40 to 59)
2931
INVALID_ENVIRONMENT_VAR = 40 # missing or invalid environment variable
@@ -45,15 +47,19 @@
4547
PROGRAM_EXECUTION_FAILURE = 82 # if script execution failed
4648
TARGET_EXISTS_NO_CLOBBER = 83 # target already exists but no -clobber option
4749
UNKNOWN_PROTOCOL = 84 # if unknown acq protocol for the file to insert
50+
NOT_A_SINGLE_STUDY = 85 # if the upload regroups multiple studies
4851
GET_SUBJECT_ID_FAILURE = 86 # if could not determine subject IDs
4952
GET_SESSION_ID_FAILURE = 87 # if could not determine session ID
5053
CREATE_SESSION_FAILURE = 88 # if could not create a session
5154

52-
FILENAME_MISMATCH = 151
55+
PHANTOM_ENTRY_FAILURE = 150 # if the phantom entry in the text file is not 'N' nor 'Y'
56+
FILENAME_MISMATCH = 151 # if patient name and filename do not match
5357

54-
CHUNK_CREATION_FAILURE = 161
58+
GET_OUTPUT_LIST_FAILURE = 160 # if could not get the list of derived data for file
59+
CHUNK_CREATION_FAILURE = 161
5560

56-
CANDIDATE_MISMATCH = 181
61+
INVALID_TARCHIVE = 180 # if tarchive validation is not set to 1 in the mri_upload table
62+
CANDIDATE_MISMATCH = 181 # if candidate PSCID and CandID do not match
5763
BIDS_CANDIDATE_MISMATCH = 182
5864

5965
NO_VALID_NIfTI_CREATED = 190

0 commit comments

Comments
 (0)