diff --git a/src/lib/logger.js b/src/lib/logger.js index a3aa832..e1a3247 100644 --- a/src/lib/logger.js +++ b/src/lib/logger.js @@ -66,7 +66,7 @@ function baseLogger(prefix, level, ...message) { out += `${color("magenta")}[${prefix}] ${color("default")}`; - out += [...message].map((m) => m.toString()).join(" "); + out += [...message].map((m) => m?.toString()).join(" "); console.log(out); }