From eb108beb8db0eeeb483a587ff523863d60a175e3 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Mon, 25 Feb 2019 17:07:33 +0100 Subject: [PATCH] [admin-api] Reduced library error fields for now refs #63 --- packages/admin-api/lib/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/admin-api/lib/index.js b/packages/admin-api/lib/index.js index ae4c762ce..4b1ee3e44 100644 --- a/packages/admin-api/lib/index.js +++ b/packages/admin-api/lib/index.js @@ -301,6 +301,9 @@ module.exports = function GhostAdminAPI(options) { // toThrow.response = err.response; throw toThrow; } else { + delete err.request; + delete err.config; + delete err.response; throw err; } });