summaryrefslogtreecommitdiffstats
path: root/glucometer.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometer.py')
-rwxr-xr-xglucometer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometer.py b/glucometer.py
index 9b3e66e..5440f0d 100755
--- a/glucometer.py
+++ b/glucometer.py
@@ -63,10 +63,10 @@ def main():
try:
driver = importlib.import_module('glucometerutils.drivers.' + args.driver)
- except ImportError:
+ except ImportError as e:
logging.error(
- 'No driver "%s" found, please check your --driver parameter.',
- args.driver)
+ 'Error importing driver "%s", please check your --driver parameter:\n%s',
+ args.driver, e)
return 1
# This check needs to happen before we try to initialize the device, as the