From ddddf8c1696523bf5068659be47607205b63cf9c Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 15 Jan 2021 16:50:45 +0000 Subject: [PATCH] better error --- functions/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index 57b4ed09e..c62a82986 100644 --- a/functions/index.js +++ b/functions/index.js @@ -167,7 +167,10 @@ exports.checkNameAvailability = functions.https.onCall( // return available; // }); } catch (e) { - console.log(e.message); + console.error( + `Error while checking name availability for ${request.name}:` + + e.message + ); return -999; } }