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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user