1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +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 {
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