1
0
Fork 0

fixed warnings

This commit is contained in:
Jan Steemann 2014-10-30 19:23:11 +01:00
parent 89c20d436c
commit d954d2db98
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,10 @@ function WARN (func, error, data) {
AQL_WARNING(error.code, error.message.replace(/%s/, func));
}
else {
var prefix = "in function '" + func + "()': ";
var prefix = "";
if (func !== null) {
prefix = "in function '" + func + "()': ";
}
if (typeof data === "string") {
AQL_WARNING(error.code, prefix + error.message.replace(/%s/, data));