From 3f796b300dc343f9da50b7975c6d8278ed61dd59 Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Wed, 7 Oct 2020 11:15:00 +0200 Subject: [PATCH] fix: ErrorResponse body changed to error --- src/types/ErrorResponse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/ErrorResponse.ts b/src/types/ErrorResponse.ts index c00822a..85635df 100644 --- a/src/types/ErrorResponse.ts +++ b/src/types/ErrorResponse.ts @@ -1,5 +1,5 @@ export class ErrorResponse { - body: ErrorBody + error: ErrorBody constructor(message: string, details?: any) { let detailsString = '' @@ -11,7 +11,7 @@ export class ErrorResponse { raw = details } - this.body = { + this.error = { message, details: detailsString, raw