mirror of https://gitee.com/bigwinds/arangodb
fixed warnings
This commit is contained in:
parent
89c20d436c
commit
d954d2db98
|
@ -77,7 +77,10 @@ function WARN (func, error, data) {
|
||||||
AQL_WARNING(error.code, error.message.replace(/%s/, func));
|
AQL_WARNING(error.code, error.message.replace(/%s/, func));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var prefix = "in function '" + func + "()': ";
|
var prefix = "";
|
||||||
|
if (func !== null) {
|
||||||
|
prefix = "in function '" + func + "()': ";
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof data === "string") {
|
if (typeof data === "string") {
|
||||||
AQL_WARNING(error.code, prefix + error.message.replace(/%s/, data));
|
AQL_WARNING(error.code, prefix + error.message.replace(/%s/, data));
|
||||||
|
|
Loading…
Reference in New Issue