rwf2 / multer

An async parser for multipart/form-data content-type in Rust
MIT License
158 stars 37 forks source link

Provide accurate error information. #9

Closed sunli829 closed 4 years ago

sunli829 commented 4 years ago

It looks great, I have switched my project to multer (https://github.com/async-graphql/async-graphql). But it would be better if it could provide more accurate error information than just a string.

rousan commented 4 years ago

You mean in an enum type like ErrorKind?

rousan commented 4 years ago

I will change the struct Error to enum variants and will make a release v1.0.4 soon.

sunli829 commented 4 years ago

Thank you.😃

rousan commented 4 years ago

Hey @sunli829 , I just released v1.1.1 with better error debugging:

Just update multer version to

multer = "1.1.1"

https://docs.rs/multer/1.1.1/multer/enum.Error.html

sunli829 commented 4 years ago

Thank you very much, it looks great now. 😁