Remove unhelpful toString on APIError
This commit is contained in:
parent
11d435a71e
commit
941c2f5961
|
@ -10,9 +10,6 @@ export class APIError extends Error {
|
|||
this.name = 'APIError'
|
||||
this.details = details
|
||||
}
|
||||
toString() {
|
||||
return this.name
|
||||
}
|
||||
}
|
||||
|
||||
export async function call(url: string, method: string, params: any) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user