From 948db7588e0a08c59b27f2e17e782e15d31084e4 Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Thu, 5 Dec 2019 00:48:15 -0500 Subject: [PATCH] strringify the logs --- dist/index.js | Bin 158087 -> 158099 bytes src/auth.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index e31c4d7686c909eb8f1c36f3e2880effec951237..0ff2524dbc4de10bc6fc9d2ce5d803b8b102b51a 100644 GIT binary patch delta 45 zcmZp_%sKfoXG06)7N#e{lBq>S`9%sU)n38=etN|vMVWc&nQ4_8shZnA3NuX$1pt#$ B5i9@z delta 33 mcmbPynX~;eXG06)7N#e{yvg|~sR}C9sd^yB_P@eR(?S8?7!1w; diff --git a/src/auth.ts b/src/auth.ts index 1e0c4f8..f716261 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -55,7 +55,7 @@ async function write(directory: string, settings: string) { // default flag is 'w' return fs.writeFileSync(location, settings, {encoding: 'utf-8'}); } - console.log(`code ${e.code} and O_EXCL ${fs.constants.O_EXCL}`); + console.log(`error ${JSON.stringify(e)} and O_EXCL ${fs.constants.O_EXCL}`); throw e; } }