mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
WebServer: Replace printf()/fprintf(stderr) with outln()/warnln()
This commit is contained in:
parent
5d80aab038
commit
7fa3033ca8
1 changed files with 2 additions and 2 deletions
|
@ -35,14 +35,14 @@ int main(int argc, char** argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((u16)port != port) {
|
if ((u16)port != port) {
|
||||||
printf("Warning: invalid port number: %d\n", port);
|
outln("Warning: Invalid port number: {}", port);
|
||||||
port = default_port;
|
port = default_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto real_root_path = Core::File::real_path_for(root_path);
|
auto real_root_path = Core::File::real_path_for(root_path);
|
||||||
|
|
||||||
if (!Core::File::exists(real_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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue