re-add nothing to pr-validate

This commit is contained in:
zkldi
2021-04-20 16:29:22 +01:00
parent 1a0ad16868
commit 8e2a69a8eb
@@ -15,6 +15,8 @@ const API_ERR_HANDLER: MiddlewareErrorHandler = (req, res, next, error) => {
if (typeof stringVal === "object" && stringVal !== null && !stringVal.toString) {
// this is probably null-prototype
stringVal = null;
} else if (stringVal === undefined) {
stringVal = "nothing";
} else {
stringVal = String(stringVal);
}