mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
chore: Switch FeatureHasTagError back to js
This commit is contained in:
parent
d1933bcd1b
commit
46c55c865f
@ -1,5 +1,5 @@
|
|||||||
class FeatureHasTagError extends Error {
|
class FeatureHasTagError extends Error {
|
||||||
constructor(message: string) {
|
constructor(message) {
|
||||||
super();
|
super();
|
||||||
Error.captureStackTrace(this, this.constructor);
|
Error.captureStackTrace(this, this.constructor);
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ class FeatureHasTagError extends Error {
|
|||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
toJSON(): any {
|
toJSON() {
|
||||||
const obj = {
|
const obj = {
|
||||||
isJoi: true,
|
isJoi: true,
|
||||||
name: this.constructor.name,
|
name: this.constructor.name,
|
||||||
@ -20,5 +20,4 @@ class FeatureHasTagError extends Error {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
module.exports = FeatureHasTagError;
|
||||||
export default { FeatureHasTagError };
|
|
Loading…
Reference in New Issue
Block a user