Skip to content

Commit

Permalink
Remote options from log
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Dec 6, 2019
1 parent 1dac4fe commit 5e29577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function generate(id: string, username: string, password: string) {
async function write(directory: string, settings: string) {
const options = {encoding: 'utf-8', flag: 'wx'}; // 'wx': Like 'w' but fails if path exists
const location = path.join(directory, SETTINGS_FILE);
console.log(`writing ${location} with options ${options}`);
console.log(`writing ${location}`);
try {
return fs.writeFileSync(location, settings, options);
} catch (e) {
Expand Down

0 comments on commit 5e29577

Please sign in to comment.