From: Armaan Bhojwani Date: Sun, 31 Jan 2021 22:13:15 +0000 (-0500) Subject: Make file not found error print more standard X-Git-Tag: v0.4.0~13 X-Git-Url: https://git.armaanb.net/?p=lightcards.git;a=commitdiff_plain;h=b5011bd4dd88f63bc61040965175def968489e66 Make file not found error print more standard --- diff --git a/lightcards/parse.py b/lightcards/parse.py index d0b0eb5..007b640 100755 --- a/lightcards/parse.py +++ b/lightcards/parse.py @@ -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)