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

◆ make_error() [3/4]

template<typename T>
result< T > fl::make_error ( const fl::string & message)

Helper function to create an error result from string.

Template Parameters
TThe value type
Parameters
messageThe error message
Returns
result containing the error

Definition at line 169 of file promise_result.h.

169 {
170 return result<T>(Error(message));
171}
Result type for promise operations.
Error type for promises.
Definition promise.h:53