Extracts the error message from a result.

Synopses

Declared in <util/result.h>

Extracts the error message from a result.

Extracts the error message from a result.

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

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