obsidiansystems / nix-thunk

seamless management of source dependencies with nix
BSD 3-Clause "New" or "Revised" License
38 stars 10 forks source link

Show more informative message on UnrecognizedThunk #41

Closed mightybyte closed 2 years ago

mightybyte commented 2 years ago

I encountered a situation where nix-thunk update (and also ob thunk update) failed with this error. The problem ended up being that my editor had a swap file in the directory that was causing the UnrecognizedThunk error. The ideal user experience would be to make it tolerate those situations, but if you don't want to do that, a more informative error message would help a LOT.