From 8b561c230dbd5bf248878308f98ecefc210b25a1 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 10 Feb 2025 21:35:00 +0100
Subject: [PATCH] Improve ModuleNotFoundError message.

---
 src/run.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/run.py b/src/run.py
index 3e45ad8..6958bb3 100755
--- a/src/run.py
+++ b/src/run.py
@@ -1,21 +1,21 @@
 #!/usr/bin/env python3
-"""Call this to start the application."""
+"""Task/todo manager."""
 
-# included libs
-from sys import exit as sys_exit
+# standard libs
 from os import environ
 from pathlib import Path
-# might need module installation(s)
+from sys import exit as sys_exit
+# non-standard libs
 try:
+    from plomlib.db import PlomDbException
     from plomtask.exceptions import HandledException
     from plomtask.http import TaskHandler, TaskServer
     from plomtask.db import DatabaseFile
-    from plomlib.db import PlomDbException
 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)
 
+
 PLOMTASK_DB_PATH = environ.get('PLOMTASK_DB_PATH')
 HTTP_PORT = 8082
 DB_CREATION_ASK = 'Database file not found. Create? Y/n\n'
-- 
2.30.2