Fix ExtError construction

This commit is contained in:
Jaco Greeff
2019-09-10 17:03:21 +02:00
parent 3b6d383ace
commit 5e494b7163
+2 -2
View File
@@ -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));