We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3518fcc commit 4fd1163Copy full SHA for 4fd1163
bin/sql-formatter-cli.cjs
@@ -132,17 +132,12 @@ class SqlFormatterCli {
132
133
async readFile(filename) {
134
try {
135
-
136
137
- return promisify(fs.readFile)(filename, { encoding: 'utf-8' })
138
- } catch (e) {
139
140
+ return promisify(fs.readFile)(filename, { encoding: 'utf-8' });
+ } catch (e) {
141
this.exitWhenIOError(e, filename);
142
console.error('An unknown error has occurred, please file a bug report at:');
143
console.log('https://github.com/sql-formatter-org/sql-formatter/issues\n');
144
throw e;
145
146
}
147
148
0 commit comments