浏览代码

Making OSError more verbose in labkeyInterface

Andrej 2 月之前
父节点
当前提交
a576a3bb48
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)