|
@@ -1,18 +1,20 @@
|
|
enum ExitCodes {
|
|
enum ExitCodes {
|
|
OK = 0,
|
|
OK = 0,
|
|
|
|
|
|
- InvalidInput = 400,
|
|
|
|
- FileNotFound = 401,
|
|
|
|
- InvalidFile = 402,
|
|
|
|
- NoAccountFound = 403,
|
|
|
|
- NoAccountSelected = 404,
|
|
|
|
- AccessDenied = 405,
|
|
|
|
|
|
+ InvalidInput = 40,
|
|
|
|
+ FileNotFound = 41,
|
|
|
|
+ InvalidFile = 42,
|
|
|
|
+ NoAccountFound = 43,
|
|
|
|
+ NoAccountSelected = 44,
|
|
|
|
+ AccessDenied = 45,
|
|
|
|
|
|
- UnexpectedException = 500,
|
|
|
|
- FsOperationFailed = 501,
|
|
|
|
- ApiError = 502,
|
|
|
|
- StorageNodeError = 503,
|
|
|
|
- ActionCurrentlyUnavailable = 504,
|
|
|
|
- QueryNodeError = 505,
|
|
|
|
|
|
+ UnexpectedException = 50,
|
|
|
|
+ FsOperationFailed = 51,
|
|
|
|
+ ApiError = 52,
|
|
|
|
+ StorageNodeError = 53,
|
|
|
|
+ ActionCurrentlyUnavailable = 54,
|
|
|
|
+ QueryNodeError = 55,
|
|
|
|
+
|
|
|
|
+ // NOTE: never exceed exit code 255 or it will be modulated by `256` and create problems
|
|
}
|
|
}
|
|
export = ExitCodes
|
|
export = ExitCodes
|