mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02: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:
1 parent
3530b85b56
commit
7a19c9062e
11 files changed
+95
-82
No files matched your search
@@ -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