Skip to content

Commit 12896df

Browse files
author
Bryan Clark
committed
logging options
1 parent bfbec53 commit 12896df

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export function generate(id: string, username: string, password: string) {
4646
async function write(directory: string, settings: string) {
4747
const options = {encoding: 'utf-8', flag: 'wx'}; // 'wx': Like 'w' but fails if path exists
4848
const location = path.join(directory, SETTINGS_FILE);
49-
console.log(`writing ${location}`);
49+
console.log(`writing ${location} with options ${options}`);
5050
try {
51-
return fs.writeFileSync(location, settings, options);
51+
fs.writeFileSync(location, settings, options);
5252
} catch (e) {
5353
if (e.code == fs.constants.O_EXCL) {
5454
console.log(`overwriting existing file ${location}`);

0 commit comments

Comments
 (0)