Skip to content

Commit 9ec5ce0

Browse files
committed
Fix DEP0013: fs async function without callback
Now mandatory in NodeJS 10. See nodejs/node#12562
1 parent c59f83f commit 9ec5ce0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ShaderTools.VSCode/src/logging.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export class Logger {
140140
// TODO: Add timestamp
141141
this.logChannel.appendLine(message);
142142
if (this.logFilePath) {
143-
fs.appendFile(this.logFilePath, message + os.EOL);
143+
fs.appendFile(this.logFilePath, message + os.EOL, (err) => {
144+
if (err) throw err;
145+
});
144146
}
145147
}
146148
}

0 commit comments

Comments
 (0)