Fix constants errors not giving a stacktrace

This commit is contained in:
Amish Shah
2016-09-04 11:53:30 +01:00
parent 4d2bb891a9
commit 9c915d1e0a
7 changed files with 14 additions and 14 deletions

View File

@@ -21,7 +21,7 @@ class APIRequest {
} else if (this.rest.client.token) {
return this.rest.client.token;
}
throw Constants.Errors.NO_TOKEN;
throw new Error(Constants.Errors.NO_TOKEN);
}
gen() {