Extracts the error message from a result.

Synopsis

Declared in <util/result.h>

template<typename FT>
bilingual_str
ErrorString(Result<FT> const& result);
Note

This function is a hidden friend of Result, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

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

Parameters

Name

Description

result

the result to inspect

Created with MrDocs