mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-06 20:10:05 +00:00
fix: predefine jsonParseArrayError message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
export class JsonParseArrayError extends Error {
|
||||
constructor(public message: string) {
|
||||
super(message)
|
||||
constructor() {
|
||||
super('Can not parse array object to json.')
|
||||
this.name = 'JsonParseArrayError'
|
||||
Object.setPrototypeOf(this, JsonParseArrayError.prototype)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user