fix(xen-api/wrapError): better handling of non-XAPI errors

Fixes #3880
This commit is contained in:
Julien Fontanet
2019-01-18 09:14:12 +01:00
parent 0fd22b9fd8
commit 29a7bd0cb2
2 changed files with 4 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
### Released packages
- xen-api v0.24.1
- xo-vmdk-to-vhd v0.1.6
- xo-server v5.34.0
- xo-web v5.34.0

View File

@@ -109,6 +109,9 @@ export const wrapError = error => {
} else {
code = error.message
params = error.data
if (!isArray(params)) {
params = []
}
}
return new XapiError(code, params)
}