Skip to content

Commit

Permalink
strringify the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Dec 5, 2019
1 parent 2b05c00 commit 948db75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 948db75

Please sign in to comment.