open: Remove extraneous newline from error output

This wasn't removed when fprintf was replaced by warnln.
This commit is contained in:
Linus Groh 2020-12-24 00:57:15 +01:00 committed by Andreas Kling
commit 46a12e32d3
Notes: sideshowbarker 2024-07-19 00:39:03 +09:00

View file

@ -53,7 +53,7 @@ int main(int argc, char* argv[])
URL url = URL::create_with_url_or_path(path);
if (url.protocol() == "file" && realpath_errno) {
warnln("Failed to open '{}': {}\n", url.path(), strerror(realpath_errno));
warnln("Failed to open '{}': {}", url.path(), strerror(realpath_errno));
all_ok = false;
continue;
}