Add HTTP status to docker error

This commit is contained in:
Julien Duponchelle committed 2016-02-01 17:42:32 +01:00
1 parent 98537a242a
commit 4a3322b822
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ class Docker(BaseManager):
except ValueError:
pass
log.debug("Query Docker %s %s params=%s data=%s Response: %s", method, path, params, data, body)
raise DockerError("Docker has returned an error: {}".format(body))
raise DockerError("Docker has returned an error: {} {}".format(response.status, body))
return response
@asyncio.coroutine