From f94dea386ce89f0f92744d0c4196416706999ea0 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 2 Apr 2020 12:46:34 +0300 Subject: [PATCH] fix(backend-proxy): fix error reporting (#3527) --- packages/netlify-cms-backend-proxy/src/implementation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-backend-proxy/src/implementation.ts b/packages/netlify-cms-backend-proxy/src/implementation.ts index 75f41093..355c2ca1 100644 --- a/packages/netlify-cms-backend-proxy/src/implementation.ts +++ b/packages/netlify-cms-backend-proxy/src/implementation.ts @@ -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'); } }