Browse Source

Making OSError more verbose in labkeyInterface

Andrej 4 months ago
parent
commit
a576a3bb48
1 changed files with 1 additions and 1 deletions
  1. 1 1
      labkeyInterface.py

+ 1 - 1
labkeyInterface.py

@@ -11,7 +11,7 @@ class labkeyInterface:
         try:
             f=open(fname)
         except OSError as e:
-            print("Confgiuration error: OS error({}): {}".format(e.errno, e.strerror))
+            print("Configuration error: OS error({}): {} {}".format(e.errno,fname, e.strerror))
             raise
 
         self.connectionConfig=json.load(f)