util::ErrorString

Extracts the error message from a result.

Synopses

Declared in <util/result.h>

Extracts the error message from a result.

bilingual_str
ErrorString(Result<FT> const& result);
» more...

Extracts the error message from a result.

template<typename T>
bilingual_str
ErrorString(Result<T> const& result);
» more...

Return Value

the stored error message, or an empty string when the result holds a value

Parameters

NameDescription
resultthe result to inspect