Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
schusj committed Aug 9, 2024
1 parent 3518fcc commit 4fd1163
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bin/sql-formatter-cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,12 @@ class SqlFormatterCli {

async readFile(filename) {
try {


return promisify(fs.readFile)(filename, { encoding: 'utf-8' })
} catch (e) {


return promisify(fs.readFile)(filename, { encoding: 'utf-8' });
} catch (e) {
this.exitWhenIOError(e, filename);
console.error('An unknown error has occurred, please file a bug report at:');
console.log('https://github.com/sql-formatter-org/sql-formatter/issues\n');
throw e;

}
}

Expand Down

0 comments on commit 4fd1163

Please sign in to comment.