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

◆ to_error()

fl::task::Error fl::asio::error_code::to_error ( ) const
inline

Convert to fl::task::Error for interop with existing FastLED code.

Definition at line 55 of file error_code.h.

55 {
56 if (ok()) {
57 return fl::task::Error();
58 }
59 return fl::task::Error(message);
60 }
bool ok() const
Convenience: true if no error.
Definition error_code.h:44

References message, and ok().

+ Here is the call graph for this function: