Response to queries where the input was blatantly invalid.
(err: AppError, description: String)
| 55 | |
| 56 | /// Response to queries where the input was blatantly invalid. |
| 57 | pub fn invalid_query(err: AppError, description: String) -> response::Query { |
| 58 | tracing::info!(error = ?err, description, "invalid query"); |
| 59 | response::Query { |
| 60 | code: Code::Err(NonZeroU32::try_from(err as u32).expect("error codes are non-zero")), |
| 61 | info: description, |
| 62 | ..Default::default() |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | pub fn to_deliver_tx( |
| 67 | ret: AppliedMessage, |