MCPcopy Create free account
hub / github.com/FastLED/FastLED / getError

Function getError

tests/fl/remote/rpc_http_stream.cpp:38–43  ·  view source on GitHub ↗

Helper to extract error from JSON-RPC response

Source from the content-addressed store, hash-verified

36
37// Helper to extract error from JSON-RPC response
38static fl::optional<json> getError(const json& response) {
39 if (!response.contains("error")) {
40 return fl::nullopt;
41 }
42 return response["error"];
43}
44
45//=============================================================================
46// TEST CASE: SYNC Mode - Immediate Response

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected