fix(backend-proxy): fix error reporting (#3527)

This commit is contained in:
Erez Rokah 2020-04-02 12:46:34 +03:00 committed by GitHub
parent 1bca0884f2
commit f94dea386c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ export default class ProxyBackend implements Implementation {
if (response.ok) {
return json;
} else {
throw new APIError(json.message, response.status, 'Proxy');
throw new APIError(json.error, response.status, 'Proxy');
}
}