mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 19:38:13 +03:00
re-add nothing to pr-validate
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user