From 9653807f309aee34c8c63ce4e6ee760cccbfdf0d Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Wed, 14 Dec 2022 10:26:35 +0500 Subject: [PATCH] Handle Symbols as exceptions correctly Before this commit, this warning is raised UnhandledPromiseRejectionWarning: TypeError: Cannot convert a Symbol value to a string --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 868a2a0..e8c196a 100644 --- a/index.js +++ b/index.js @@ -524,7 +524,7 @@ class Pinski { +`\n ╱ Are you visiting this website? Not sure what's going on? ╲` +`\n ╲ You might want to come back later. ╱` +`\n\n\n` - +`\n`+(err && err.stack ? err.stack : err && err.message ? err.message : err) + +`\n`+(err && err.stack ? err.stack : err && err.message ? err.message : err.description ? err.description : err) ) res.end() } -- 2.45.2