mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 20:48:46 +02:00
「🔨」 fix: fixed some exception handling that were a little SUS
This commit is contained in:
@ -2,7 +2,7 @@ log_file = "test.log"
|
||||
|
||||
[server]
|
||||
server_names = { "localhost", "2B5.local" }
|
||||
host = "0.0.0.0"
|
||||
host = "localhost"
|
||||
port = 8080
|
||||
|
||||
[server.error_pages]
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/04/11 16:11:40 by adjoly #+# #+# */
|
||||
/* Updated: 2025/04/22 16:34:40 by adjoly ### ########.fr */
|
||||
/* Updated: 2025/04/22 16:37:31 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -149,7 +149,7 @@ Server::Server(config::Config *conf) : _conf(conf) {
|
||||
try {
|
||||
_setup();
|
||||
_run();
|
||||
} catch (std::exception &e) {
|
||||
} catch (std::runtime_error &e) {
|
||||
_log->error(e.what());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user