1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-17 00:50:05 +00:00

fix: ErrorResponse body changed to error

This commit is contained in:
Mihajlo Medjedovic
2020-10-07 11:15:00 +02:00
parent bd8012fe3e
commit 3f796b300d

View File

@@ -1,5 +1,5 @@
export class ErrorResponse { export class ErrorResponse {
body: ErrorBody error: ErrorBody
constructor(message: string, details?: any) { constructor(message: string, details?: any) {
let detailsString = '' let detailsString = ''
@@ -11,7 +11,7 @@ export class ErrorResponse {
raw = details raw = details
} }
this.body = { this.error = {
message, message,
details: detailsString, details: detailsString,
raw raw