Remove last remaining debug(0)

Replace with FLOGF.
This commit is contained in:
Fabian Homborg 2020-01-19 13:31:25 +01:00
parent 0e5846ee38
commit 384f18a51c
2 changed files with 2 additions and 2 deletions

View file

@ -184,7 +184,7 @@ bool is_windows_subsystem_for_linux() {
// is bypassed. We intentionally do not include this in the error message because // is bypassed. We intentionally do not include this in the error message because
// it'll only allow fish to run but not to actually work. Here be dragons! // it'll only allow fish to run but not to actually work. Here be dragons!
if (getenv("FISH_NO_WSL_CHECK") == nullptr) { if (getenv("FISH_NO_WSL_CHECK") == nullptr) {
debug(0, FLOGF(error,
"This version of WSL has known bugs that prevent fish from working." "This version of WSL has known bugs that prevent fish from working."
"Please upgrade to Windows 10 1809 (17763) or higher to use fish!"); "Please upgrade to Windows 10 1809 (17763) or higher to use fish!");
} }

View file

@ -3514,7 +3514,7 @@ static int read_ni(parser_t &parser, int fd, const io_chain_t &io) {
clearerr(in_stream); clearerr(in_stream);
} else { } else {
// Fatal error. // Fatal error.
debug(0, _(L"Unable to read input file: %s"), strerror(errno)); FLOGF(error, _(L"Unable to read input file: %s"), strerror(errno));
// Reset buffer on error. We won't evaluate incomplete files. // Reset buffer on error. We won't evaluate incomplete files.
acc.clear(); acc.clear();
break; break;