| 305 | } |
| 306 | |
| 307 | int main(int argc, char* argv[]) |
| 308 | { |
| 309 | SetupEnvironment(); |
| 310 | |
| 311 | try { |
| 312 | if (!AppInitRPC(argc, argv)) |
| 313 | return EXIT_FAILURE; |
| 314 | } catch (std::exception& e) { |
| 315 | PrintExceptionContinue(&e, "AppInitRPC()"); |
| 316 | return EXIT_FAILURE; |
| 317 | } catch (...) { |
| 318 | PrintExceptionContinue(NULL, "AppInitRPC()"); |
| 319 | return EXIT_FAILURE; |
| 320 | } |
| 321 | |
| 322 | int ret = EXIT_FAILURE; |
| 323 | try { |
| 324 | ret = CommandLineRPC(argc, argv); |
| 325 | } catch (std::exception& e) { |
| 326 | PrintExceptionContinue(&e, "CommandLineRPC()"); |
| 327 | } catch (...) { |
| 328 | PrintExceptionContinue(NULL, "CommandLineRPC()"); |
| 329 | } |
| 330 | return ret; |
| 331 | } |
nothing calls this directly
no test coverage detected