mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:08:13 +00:00
pro: Print the response code if it's an error
This commit is contained in:
parent
9b891a423b
commit
53b7edd5b9
1 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
following_url = false;
|
following_url = false;
|
||||||
|
|
||||||
|
if (status_code_value >= 400)
|
||||||
|
warnln("Request returned error {}", status_code_value);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
request->on_finish = [&](bool success, auto) {
|
request->on_finish = [&](bool success, auto) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue