Skip to content

Commit

Permalink
fix(backend-proxy): fix error reporting (#3527)
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Apr 2, 2020
1 parent 1bca088 commit f94dea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/netlify-cms-backend-proxy/src/implementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit f94dea3

Please sign in to comment.