]> git.armaanb.net Git - lightcards.git/commitdiff
Make file not found error print more standard
authorArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 22:13:15 +0000 (17:13 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sun, 31 Jan 2021 22:13:15 +0000 (17:13 -0500)
lightcards/parse.py

index d0b0eb5c001e19cf98f64c7aa1c5d8675f7bdeda..007b6408321b550257c45192177256296c952d9f 100755 (executable)
@@ -15,7 +15,7 @@ def md2html(file):
         with open(file, "r", encoding="utf-8") as input_file:
             return markdown.markdown(input_file.read(), extensions=['tables'])
     except FileNotFoundError:
-        print(f"File \"{file}\" not found!")
+        print(f"lightcards: \"{file}\": No such file or directory")
         exit(1)