ExtError doesn't require any arguments

This commit is contained in:
Jaco Greeff
2018-06-24 14:41:16 +02:00
parent 0a572e6771
commit ae814c646d
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ export default class ExtError extends Error implements ExtErrorInterface {
// @ts-ignore we are assigning it via extend
stack: string;
constructor (message: string = '', code: number = UNKNOWN, data: any) {
constructor (message: string = '', code: number = UNKNOWN, data?: any) {
super();
extend(this, 'message', String(message));