1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

Userland: Use new format functions in some programs

This commit is contained in:
Andreas Kling 2020-10-20 17:28:17 +02:00
parent d1fe6a0b53
commit 633b6fbc48
Notes: sideshowbarker 2024-07-19 01:50:01 +09:00
4 changed files with 23 additions and 26 deletions

View file

@ -52,13 +52,13 @@ int main(int argc, char* argv[])
URL url = URL::create_with_url_or_path(path);
if (url.protocol() == "file" && realpath_errno) {
fprintf(stderr, "Failed to open '%s': %s\n", url.path().characters(), strerror(realpath_errno));
warnln("Failed to open '{}': {}\n", url.path(), strerror(realpath_errno));
all_ok = false;
continue;
}
if (!Desktop::Launcher::open(url)) {
fprintf(stderr, "Failed to open '%s'\n", url.path().characters());
warnln("Failed to open '{}'", url.path());
all_ok = false;
}
}