mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 3bbc46ddaf into merged_master (Bitcoin PR bitcoin/bitcoin#24632)
This commit is contained in:
commit
1fda45d8e8
1 changed files with 3 additions and 1 deletions
|
|
@ -1055,7 +1055,9 @@ static void ParseGetInfoResult(UniValue& result)
|
|||
result_string += "\n";
|
||||
}
|
||||
|
||||
result_string += strprintf("%sWarnings:%s %s", YELLOW, RESET, result["warnings"].getValStr());
|
||||
const std::string warnings{result["warnings"].getValStr()};
|
||||
result_string += strprintf("%sWarnings:%s %s", YELLOW, RESET, warnings.empty() ? "(none)" : warnings);
|
||||
|
||||
result.setStr(result_string);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue