MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ErrorString

Function ErrorString

src/util/result.h:93–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92template <typename T>
93bilingual_str ErrorString(const Result<T>& result)
94{
95 return result ? bilingual_str{} : std::get<0>(result.m_variant);
96}
97} // namespace util
98
99#endif // BITCOIN_UTIL_RESULT_H

Callers 15

SignTransactionMethod · 0.85
AppInitSanityChecksFunction · 0.85
AppInitMainFunction · 0.85
LoadExternalBlockFileMethod · 0.85
validation.cppFile · 0.85
MaybeValidateSnapshotMethod · 0.85
ImprovesFeerateDiagramFunction · 0.85
ExecuteWalletToolFuncFunction · 0.85
ExportWatchOnlyWalletFunction · 0.85
HasErrorMsgFunction · 0.85

Calls

no outgoing calls

Tested by 7

BOOST_AUTO_TEST_CASEFunction · 0.68
TestBnBFailFunction · 0.68
TestSRDFailFunction · 0.68
HasErrorMsgFunction · 0.68
ExpectResultFunction · 0.68
SetOptsFromArgsFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68