diff options
| author | root <root@turin.home> | 2022-02-04 18:07:47 +0000 |
|---|---|---|
| committer | root <root@turin.home> | 2022-02-04 18:07:47 +0000 |
| commit | 6671090e31ab30711f169abfb61d880b50ba27d8 (patch) | |
| tree | 8952c13c358694c423f67e5e1e09223ed090a326 /errors.py | |
| parent | 0e23673e015a5261019a151f22b419f4c80b7e8d (diff) | |
Dictionary class. Reformat.
Diffstat (limited to 'errors.py')
| -rw-r--r-- | errors.py | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,6 @@ +import os + + def device_error(): print( """ @@ -7,4 +10,17 @@ def device_error(): - Raspberry Pi 4 """ ) + os._exit(1) + quit() + + +def argument_error(data, datatype): + print( + """ + Invalid data type {} for {} + """.format( + data, datatype + ) + ) + os._exit(1) quit() |
