added default err report in info

This commit is contained in:
dimxy
2019-05-15 17:16:26 +05:00
parent 51f32c8b8c
commit b80c8710f2
2 changed files with 6 additions and 2 deletions

View File

@@ -2047,6 +2047,10 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
else if (retcode == -4) {
result.push_back(Pair("result", "error"));
result.push_back(Pair("error", "error scanning chain"));
}
else {
result.push_back(Pair("result", "error"));
result.push_back(Pair("error", retcode));
}
return(result);
}