Add more information when qemu-img fails.

This commit is contained in:
grossmj committed 2017-10-02 00:47:16 +08:00
1 parent 2a4ed9ba89
commit 7269285b0f
2 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ class WebServer:
try:
srv = self._loop.create_server(handler, self._host, self._port, ssl=ssl_context)
self._server, startup_res = self._loop.run_until_complete(asyncio.gather(srv, self._app.startup(), loop=self._loop))
except (OSError, asyncio.CancelledError) as e:
except (RuntimeError, OSError, asyncio.CancelledError) as e:
log.critical("Could not start the server: {}".format(e))
return False
return True