aboutsummaryrefslogtreecommitdiff
path: root/prototyping/errmsg.py
diff options
context:
space:
mode:
authorLionel <lionel.miquel46@gmail.com>2018-10-21 14:53:51 +0200
committerLionel <lionel.miquel46@gmail.com>2018-10-21 14:53:51 +0200
commitb3ee49d174a35bbf4da6b1c60059795fdb88f710 (patch)
tree8b6c371d02eb30cd0ec874004dbabb0d8e93d33f /prototyping/errmsg.py
parent7fbd76c1e51bf1cc3094b7d2286668cd839675fe (diff)
downloadrandopitons-b3ee49d174a35bbf4da6b1c60059795fdb88f710.tar.gz
randopitons-b3ee49d174a35bbf4da6b1c60059795fdb88f710.zip
Finally I'll rewrite it in bash i find it more readable than my python scripts. Will plan on a powershell version too
Diffstat (limited to 'prototyping/errmsg.py')
-rw-r--r--prototyping/errmsg.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/prototyping/errmsg.py b/prototyping/errmsg.py
new file mode 100644
index 0000000..8e67d42
--- /dev/null
+++ b/prototyping/errmsg.py
@@ -0,0 +1,7 @@
+import colorcode as clc
+os=clc.fail+"Operating System error:"+clc.endc
+direxist=clc.warn+clc.bold+"The folder already exists !"+clc.endc
+formaterr=clc.fail+"Something occured with the formating. File is not retrievable, passing on next download."+clc.endc
+sslerr=clc.fail+clc.bold+"SSL Certificate Error. Please check the time on your computer, adjust it accordingly, or wait a bit before retrying the downloads."+clc.endc
+sigkill=clc.fail+"\n\nProcess interrupted by CTRL+C or system."+clc.endc
+"\n\nProcess interrupted by CTRL+C or system."