Procházet zdrojové kódy

feat(main): add PERMISSION_DENIED exit code

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen před 2 roky
rodič
revize
1ed2e1f84d
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      src/main.rs

+ 3 - 0
src/main.rs

@@ -382,4 +382,7 @@ mod exits {
 
 
     /// Exit code for when the command-line options are invalid.
     /// Exit code for when the command-line options are invalid.
     pub const OPTIONS_ERROR: i32 = 3;
     pub const OPTIONS_ERROR: i32 = 3;
+
+    /// Exit code for when the you don't have permissions for the file.
+    pub const PERMISSION_DENIED: i32 = 13;
 }
 }