Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/exceptions.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-14 12:16:46 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-14 12:16:46 +0100
commitf589750a3cff6f061bc4b78ef857e52a7fbc874c (patch)
tree58c321134df6bb86ef994d85e959af29959e245f /archinstall/lib/exceptions.py
parent577428f1b20da6f7f583c9c3c276ee1d38abb01d (diff)
Tweaked SysCallError() exception to include the exit code in a machine readable manner. Since it's useful as an indicator where calls might go wrong and for what reason.
Diffstat (limited to 'archinstall/lib/exceptions.py')
-rw-r--r--archinstall/lib/exceptions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py
index 5a5d47c6..558a397d 100644
--- a/archinstall/lib/exceptions.py
+++ b/archinstall/lib/exceptions.py
@@ -7,7 +7,10 @@ class UnknownFilesystemFormat(BaseException):
class ProfileError(BaseException):
pass
class SysCallError(BaseException):
- pass
+ def __init__(self, message, error_code):
+ super(SysCallError, self).__init__(message)
+ self.message = message
+ self.error_code = error_code
class ProfileNotFound(BaseException):
pass
class HardwareIncompatibilityError(BaseException):