fix error naming again
This commit is contained in:
parent
e33e5ed67c
commit
f4a74b9ba5
4
utils.js
4
utils.js
@ -1,14 +1,14 @@
|
||||
class ResponseError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "ValidationError";
|
||||
this.name = "ResponseError";
|
||||
}
|
||||
}
|
||||
|
||||
class NetworkError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "ValidationError";
|
||||
this.name = "NetworkError";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user