From 4a3322b822cb46e02621e72242df3bdc69455215 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 1 Feb 2016 17:42:32 +0100 Subject: [PATCH] Add HTTP status to docker error --- gns3server/modules/docker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/modules/docker/__init__.py b/gns3server/modules/docker/__init__.py index 48216050..c1a71cd7 100644 --- a/gns3server/modules/docker/__init__.py +++ b/gns3server/modules/docker/__init__.py @@ -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