Skip to content

Commit d5529b1

Browse files
author
SkyLined
committed
mStandardExitCodes
1 parent 7f3834a commit d5529b1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

mExitCodes.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
# Running this script will return an exit code, which are defined here:
2-
# These are for errors that most of my scripts could have:
3-
guExitCodeSuccess = 0;
4-
guExitCodeInternalError = 1;
5-
guExitCodeBadArgument = 2;
6-
guExitCodeBadDependencyError = 3;
7-
guExitCodeLicenseError = 4;
8-
guExitCodeCannotReadFromFileSystem = 5;
9-
guExitCodeCannotWriteToFileSystem = 6;
10-
guExitCodeTerminatedByUser = 7;
1+
from mStandardExitCodes import *;
112
# These are specific to this particular script:
123
guExitCodeApplicationBinaryNotFound = 10;
134
guExitCodeNoBugsDetected = 11;

mStandardExitCodes.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These error codes are the same for any script that adheres to this standard:
2+
guExitCodeSuccess = 0;
3+
guExitCodeInternalError = 1;
4+
guExitCodeBadArgument = 2;
5+
guExitCodeBadDependencyError = 3;
6+
guExitCodeLicenseError = 4;
7+
guExitCodeCannotReadFromFileSystem = 5;
8+
guExitCodeCannotWriteToFileSystem = 6;
9+
guExitCodeTerminatedByUser = 7;

0 commit comments

Comments
 (0)