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:
parent
d1fe6a0b53
commit
633b6fbc48
Notes:
sideshowbarker
2024-07-19 01:50:01 +09:00
Author: https://github.com/awesomekling
Commit: 633b6fbc48
4 changed files with 23 additions and 26 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue