FastLED 3.9.15
Loading...
Searching...
No Matches

◆ error_message()

template<typename T>
fl::string fl::task::PromiseResult< T >::error_message ( ) const
inline

Get the error message as a convenience.

Returns
Error message string, or empty string if successful
Note
Safe to call on success results (returns empty string)

Definition at line 114 of file promise_result.h.

114 {
115 return ok() ? fl::string() : error().message;
116 }
bool ok() const
Check if the result is successful.
const Error & error() const
Get the error value.
Result type for promise operations.

References error(), fl::task::Error::message, and ok().

+ Here is the call graph for this function: