mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
[rpc] Include the name of the asset in error message when the asset cannot be identified.
This commit is contained in:
parent
2ac5eafbca
commit
5157fc17ba
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ static CAsset GetAssetFromString(const std::string& strasset)
|
|||
asset = CAsset(uint256S(strasset));
|
||||
}
|
||||
if (asset.IsNull()) {
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, "Unknown label and invalid asset hex");
|
||||
throw JSONRPCError(RPC_WALLET_ERROR, strprintf("Unknown label and invalid asset hex: %s", strasset.c_str()));
|
||||
}
|
||||
return asset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue