Skip to content

Commit 0c4661a

Browse files
kirrg001naz
authored andcommitted
[admin-api] Reduced library error fields for now
refs TryGhost#63
1 parent 6bd6ae3 commit 0c4661a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/admin-api/lib/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ module.exports = function GhostAdminAPI(options) {
301301
// toThrow.response = err.response;
302302
throw toThrow;
303303
} else {
304+
delete err.request;
305+
delete err.config;
306+
delete err.response;
304307
throw err;
305308
}
306309
});

0 commit comments

Comments
 (0)