Clean up dicebet/dicestatus error handling and add new macro to make things easier

This commit is contained in:
Jonathan "Duke" Leto
2018-11-07 13:30:29 -08:00
parent e37833a344
commit d3f0b4269d
3 changed files with 22 additions and 21 deletions

View File

@@ -1208,4 +1208,6 @@ public:
/** Error status printout */
#define ERR_RESULT(x) result.push_back(Pair("result", "error")) , result.push_back(Pair("error", x));
#define RETURN_IF_ERROR(CCerror) if ( CCerror != "" ) { ERR_RESULT(CCerror); return(result); }
#endif // BITCOIN_WALLET_WALLET_H