mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-12 20:38:23 +00:00
Pass *args to VM_CLASS.
Move Config the the base manager. More checks for projects (UUID, makedirs). Return error 500 when a VMError exception is raised. Some more progress to VirtualBox.
This commit is contained in:
@ -111,8 +111,8 @@ class Route(object):
|
||||
response.json({"message": e.text, "status": e.status})
|
||||
except VMError as e:
|
||||
response = Response(route=route)
|
||||
response.set_status(400)
|
||||
response.json({"message": str(e), "status": 400})
|
||||
response.set_status(500)
|
||||
response.json({"message": str(e), "status": 500})
|
||||
return response
|
||||
|
||||
cls._routes.append((method, cls._path, control_schema))
|
||||
|
Reference in New Issue
Block a user