diff --git a/packages/util/src/ext/error.ts b/packages/util/src/ext/error.ts index 9459a9ce3..fe2a14f92 100644 --- a/packages/util/src/ext/error.ts +++ b/packages/util/src/ext/error.ts @@ -47,8 +47,8 @@ export default class ExtError extends Error implements ExtErrorInterface { // These are actually done via extend below to clean them up this.code = code; this.data = data; - this.name = name; - this.message = message; + this.name = this.constructor.name; + this.message = String(message); this.stack = ''; extend(this, 'message', String(message));