Archived
fixed no return
This commit is contained in:
1 parent
fe5f8438ef
commit
ee71f98a54
1 file changed
+2
-2
+2
-2
@@ -24,7 +24,7 @@ export class ArgumentTypeError extends TypeError {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
toString() {
|
toString() {
|
||||||
`Argument ${this.stringContent} cannot be converted to ${this.type}`;
|
return `Argument "${this.stringContent}" cannot be converted to ${this.type}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,6 +35,6 @@ export class MissingArgumentError extends ReferenceError {
|
|||||||
this.argument = a;
|
this.argument = a;
|
||||||
}
|
}
|
||||||
toString() {
|
toString() {
|
||||||
return `${this.argument.name}: Argument not optional`;
|
return `Your request is missing a "${this.argument.name}" argument which is not optional`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user