1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 00:38:10 +00:00

Add HTTP status to docker error

This commit is contained in:
Julien Duponchelle 2016-02-01 17:42:32 +01:00
parent 98537a242a
commit 4a3322b822
No known key found for this signature in database
GPG Key ID: 0898C847450754FB

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