api-error 0.1.3

A derive macro for attaching HTTP status codes and user-facing messages to Rust error types.
Documentation
1
2
3
4
5
error: positional argument '2' out of bounds (max 0)
 --> tests/ui/format_out_of_bounds.rs:6:27
  |
6 |     #[api_error(message = "Out of bounds {2}")]
  |                           ^^^^^^^^^^^^^^^^^^^