浏览代码

add msg attribute to ProjectError class

Signed-off-by: Anton Simernia <[email protected]>
Anton Simernia 9 年之前
父节点
当前提交
4b01f6dcd6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compose/project.py

+ 2 - 1
compose/project.py

@@ -539,4 +539,5 @@ class NoSuchService(Exception):
 
 
 class ProjectError(Exception):
-    pass
+    def __init__(self, msg):
+        self.msg = msg