byronwasti / movine

A migration manager written in Rust that attempts to be smart yet minimal
MIT License
109 stars 9 forks source link

Very generic error "No such file or directory" #19

Open meh opened 3 years ago

meh commented 3 years ago
[devshell] query/service $ movine status
Error: IO Error: No such file or directory (os error 2)

What is this trying to tell me and how can I debug it? :panda_face:

I tried adding RUST_LOG=debug but that didn't help.

meh commented 3 years ago

Oh, got it, it's what happens when a file is missing in the migration directory.

byronwasti commented 3 years ago

Yeah the default IO error isn't particularly descriptive. I will look into making the error handling here return something nicer to work with. Thanks for the bug!