Put quotes around log
This commit is contained in:
parent
ad1a364de2
commit
b8b22ba47d
|
@ -69,7 +69,7 @@ function fileFilter(req, file, cb) {
|
||||||
cb(null, true);
|
cb(null, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log.warn(`Filetype ${file.mimetype} is not of type zip`);
|
log.warn(`Filetype "${file.mimetype}" is not of type zip`);
|
||||||
cb(new Error("Dataset is not of type zip"), false);
|
cb(new Error("Dataset is not of type zip"), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -47,7 +47,7 @@ function fileFilter (req: any, file: any, cb: any) {
|
||||||
if (accepted.indexOf(file.mimetype) !== -1) {
|
if (accepted.indexOf(file.mimetype) !== -1) {
|
||||||
cb(null, true);
|
cb(null, true);
|
||||||
} else {
|
} else {
|
||||||
log.warn(`Filetype ${file.mimetype} is not of type zip`);
|
log.warn(`Filetype "${file.mimetype}" is not of type zip`);
|
||||||
cb(new Error("Dataset is not of type zip"), false);
|
cb(new Error("Dataset is not of type zip"), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue