From 96236d7072cf35fe951ee34da7850be147cd261d Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Thu, 5 Dec 2019 00:43:41 -0500 Subject: [PATCH] return but shoudl still fail --- dist/index.js | Bin 158003 -> 158010 bytes src/auth.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 22c99c9fca81ef1365e04872a6ac91b43efd9d4d..3f1a2e3aa06f4a0985c1e2d1d6832a0909bc8c39 100644 GIT binary patch delta 29 lcmdmdiF4N_&W0AoEllM?(;xUTu}`lQW>VcgM~G>97yz`N3e*4q delta 24 gcmdmWiF5NM&W0AoEllM?(;I}DRJSh{VwxTX0DjX66aWAK diff --git a/src/auth.ts b/src/auth.ts index 2e83ede..f0d1197 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -48,7 +48,7 @@ async function write(directory: string, settings: string) { const location = path.join(directory, SETTINGS_FILE); console.log(`writing ${location} with options ${options}`); try { - fs.writeFileSync(location, settings, options); + return fs.writeFileSync(location, settings, options); } catch (e) { if (e.code == fs.constants.O_EXCL) { console.log(`overwriting existing file ${location}`);