lamedh-dev / aws-lambda-rust-runtime

Apache License 2.0
84 stars 13 forks source link

Error formatting #23

Closed juchiast closed 3 years ago

juchiast commented 3 years ago

Currently custom error is formatted with "{:?}", which is rust-specific formatting and I don't think it makes sense to return this other applications.

https://github.com/lamedh-dev/aws-lambda-rust-runtime/blob/9c6593e8c0857f31ea9747594960954f1820addf/lambda/src/lib.rs#L233

Suggestion: use Display to format e, people who want to use Debug can still do format!("{:?}", e) manually.