From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 10 Feb 2025 20:33:41 +0000 (+0100)
Subject: Improve ModuleNotFoundError message.
X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/booking/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D?a=commitdiff_plain;h=63e54f2d14e26c6ca9e6efce0e718708c98e11b5;p=ledgplom

Improve ModuleNotFoundError message.
---

diff --git a/src/run.py b/src/run.py
index abd1709..c7fdad8 100755
--- a/src/run.py
+++ b/src/run.py
@@ -1,19 +1,18 @@
 #!/usr/bin/env python3
 """Viewer and editor for ledger .dat files."""
 
-# included libs
+# standard libs
 from datetime import date as dt_date
 from decimal import Decimal, InvalidOperation as DecimalInvalidOperation
 from os import environ
 from pathlib import Path
 from sys import exit as sys_exit
 from typing import Any, Optional, Self
-# might need module installation(s)
+# non-standard libs
 try:
     from plomlib.web import PlomHttpHandler, PlomHttpServer, PlomQueryMap
 except ModuleNotFoundError as e:
-    print('FAIL: Missing module(s), please run with "install_deps" argument.')
-    print(e)
+    print(f"Missing dependency: {e}. Please run with 'install_deps' argument.")
     sys_exit(1)