Name the DatabaseError so we get better logs

This commit is contained in:
Johannes Zellner
2016-08-05 12:30:28 +02:00
parent ed734ef2ae
commit 26a590b827
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function AppsError(reason, errorOrMessage) {
this.name = this.constructor.name;
this.reason = reason;
if (typeof errorOrMessage === 'undefined') {
if (typeof errorOrMessage === 'undefined' || errorOrMessage === null) {
this.message = reason;
} else if (typeof errorOrMessage === 'string') {
this.message = errorOrMessage;