return SmartCardError::kUnknown;Passing value other then in enum should be treated as an error, we typically make the return type of these function to be `base::Expected<SmartCardError, protocol::Response>`, so it can return either a good value or an error code that would be sent to client.
return DispatchResponse::ServerError("Request not found");nit: here and below, this kind of errors is typically a client error than server's, so `DispatchResonse::InvalidParams(...)`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Passing value other then in enum should be treated as an error, we typically make the return type of these function to be `base::Expected<SmartCardError, protocol::Response>`, so it can return either a good value or an error code that would be sent to client.
Done
return DispatchResponse::ServerError("Request not found");nit: here and below, this kind of errors is typically a client error than server's, so `DispatchResonse::InvalidParams(...)`
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |