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 | 2 +- src/auth.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index e31c4d7..0ff2524 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4175,7 +4175,7 @@ function write(directory, settings) { // 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; } }); 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; } }