mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +00:00
WebServer: Replace printf()/fprintf(stderr) with outln()/warnln()
This commit is contained in:
parent
5d80aab038
commit
7fa3033ca8
Notes:
sideshowbarker
2024-07-18 17:10:25 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -35,14 +35,14 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
if ((u16)port != port) {
|
||||
printf("Warning: invalid port number: %d\n", port);
|
||||
outln("Warning: Invalid port number: {}", port);
|
||||
port = default_port;
|
||||
}
|
||||
|
||||
auto real_root_path = Core::File::real_path_for(root_path);
|
||||
|
||||
if (!Core::File::exists(real_root_path)) {
|
||||
fprintf(stderr, "Root path does not exist: '%s'\n", root_path);
|
||||
warnln("Root path does not exist: '{}'", root_path);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue