From 384f18a51c138a6786349637de89902d7ee8a270 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 19 Jan 2020 13:31:25 +0100 Subject: [PATCH] Remove last remaining debug(0) Replace with FLOGF. --- src/common.cpp | 2 +- src/reader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.cpp b/src/common.cpp index 3fd2da590..3ede77e2c 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -184,7 +184,7 @@ bool is_windows_subsystem_for_linux() { // 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! if (getenv("FISH_NO_WSL_CHECK") == nullptr) { - debug(0, + FLOGF(error, "This version of WSL has known bugs that prevent fish from working." "Please upgrade to Windows 10 1809 (17763) or higher to use fish!"); } diff --git a/src/reader.cpp b/src/reader.cpp index 62c7d4938..3cf7a7654 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -3514,7 +3514,7 @@ static int read_ni(parser_t &parser, int fd, const io_chain_t &io) { clearerr(in_stream); } else { // 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. acc.clear(); break;