summaryrefslogtreecommitdiff
path: root/docker/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'docker/errors.py')
-rw-r--r--docker/errors.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/errors.py b/docker/errors.py
index eeeac57..0253695 100644
--- a/docker/errors.py
+++ b/docker/errors.py
@@ -140,8 +140,11 @@ class StreamParseError(RuntimeError):
self.msg = reason
-class BuildError(Exception):
- pass
+class BuildError(DockerException):
+ def __init__(self, reason, build_log):
+ super(BuildError, self).__init__(reason)
+ self.msg = reason
+ self.build_log = build_log
class ImageLoadError(DockerException):