Ed Tanous | 3ccb3ad | 2023-01-13 17:40:03 -0800 | [diff] [blame] | 1 | |
Ed Tanous | 3ccb3ad | 2023-01-13 17:40:03 -0800 | [diff] [blame] | 2 | |
Ed Tanous | 3cd7072 | 2024-04-06 09:24:01 -0700 | [diff] [blame] | 3 | #include "logging.hpp" |
4 | #include "webserver_run.hpp" | ||||
Ed Tanous | cc5a37f | 2017-05-11 10:27:23 -0700 | [diff] [blame] | 5 | |
Josh Lehan | 45248ba | 2022-07-14 14:03:29 -0700 | [diff] [blame] | 6 | #include <exception> |
Gunnar Mills | 1214b7e | 2020-06-04 10:11:30 -0500 | [diff] [blame] | 7 | |
Ed Tanous | 24b2fe8 | 2022-01-06 12:45:54 -0800 | [diff] [blame] | 8 | int main(int /*argc*/, char** /*argv*/) |
9 | { | ||||
10 | try | ||||
11 | { | ||||
12 | return run(); | ||||
13 | } | ||||
Josh Lehan | 45248ba | 2022-07-14 14:03:29 -0700 | [diff] [blame] | 14 | catch (const std::exception& e) |
15 | { | ||||
Ed Tanous | 62598e3 | 2023-07-17 17:06:25 -0700 | [diff] [blame] | 16 | BMCWEB_LOG_CRITICAL("Threw exception to main: {}", e.what()); |
Josh Lehan | 45248ba | 2022-07-14 14:03:29 -0700 | [diff] [blame] | 17 | return -1; |
18 | } | ||||
Ed Tanous | 24b2fe8 | 2022-01-06 12:45:54 -0800 | [diff] [blame] | 19 | catch (...) |
20 | { | ||||
Ed Tanous | 62598e3 | 2023-07-17 17:06:25 -0700 | [diff] [blame] | 21 | BMCWEB_LOG_CRITICAL("Threw exception to main"); |
Ed Tanous | 6f2cd97 | 2022-06-30 18:09:06 -0700 | [diff] [blame] | 22 | return -1; |
Ed Tanous | 24b2fe8 | 2022-01-06 12:45:54 -0800 | [diff] [blame] | 23 | } |
24 | } |