summaryrefslogtreecommitdiff
path: root/src/webserver_main.cpp
blob: ee752b0239d97a70bfa1add30bcd95f1693070b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "logging.hpp"
#include "webserver_run.hpp"

#include <exception>
#include <memory>
#include <string>

int main(int /*argc*/, char** /*argv*/)
{
    try
    {
        return run();
    }
    catch (const std::exception& e)
    {
        BMCWEB_LOG_CRITICAL("Threw exception to main: {}", e.what());
        return -1;
    }
    catch (...)
    {
        BMCWEB_LOG_CRITICAL("Threw exception to main");
        return -1;
    }
}