From 2b05c0051416301757a657e4d41bd5a6c987bda1 Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Thu, 5 Dec 2019 00:45:56 -0500 Subject: [PATCH] logging code --- dist/index.js | 1 + src/auth.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index 3f1a2e3..e31c4d7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4175,6 +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}`); throw e; } }); diff --git a/src/auth.ts b/src/auth.ts index f0d1197..1e0c4f8 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -55,6 +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}`); throw e; } }