| 37 | } |
| 38 | |
| 39 | int main(int argc, char* argv[]) |
| 40 | { |
| 41 | SetupEnvironment(); |
| 42 | |
| 43 | try { |
| 44 | if(!AppInitRPC(argc, argv)) |
| 45 | return abs(RPC_MISC_ERROR); |
| 46 | } catch (exception& e) { |
| 47 | PrintExceptionContinue(&e, "AppInitRPC()"); |
| 48 | return abs(RPC_MISC_ERROR); |
| 49 | } catch (...) { |
| 50 | PrintExceptionContinue(NULL, "AppInitRPC()"); |
| 51 | return abs(RPC_MISC_ERROR); |
| 52 | } |
| 53 | |
| 54 | int ret = abs(RPC_MISC_ERROR); |
| 55 | try { |
| 56 | ret = CommandLineRPC(argc, argv); |
| 57 | } catch (exception& e) { |
| 58 | PrintExceptionContinue(&e, "CommandLineRPC()"); |
| 59 | } catch (...) { |
| 60 | PrintExceptionContinue(NULL, "CommandLineRPC()"); |
| 61 | } |
| 62 | return ret; |
| 63 | } |
nothing calls this directly
no test coverage detected