Привет!
Меня зовут Никита Соболев. Я занимаюсь опенсорс разработкой полный рабочий день.
Тут я рассказываю про #python, #c, #opensource и тд.
Поддержать: https://boosty.to/sobolevn
РКН: https://vk.cc/cOzn36
Связь: @sobolev_nikita
Post #400
1.93K
fs-err is a drop-in replacement for #rust
The error message that Rust gives you isn't very useful:
...but if we use fs-err instead, our error contains more actionable information:
https://github.com/andrewhickman/fs-err
GitHub GitHub - andrewhickman/fs-err: A simple wrapper around filesystem operations to provide more helpful error messages. A simple wrapper around filesystem operations to provide more helpful error messages. - andrewhickman/fs-err std::fs that provides more helpful messages on errors. Extra information includes which operations was attmpted and any involved paths.The error message that Rust gives you isn't very useful:
The system cannot find the file specified. (os error 2)...but if we use fs-err instead, our error contains more actionable information:
to open file `does not exist.txt`
caused by: The system cannot find the file specified. (os error 2)
https://github.com/andrewhickman/fs-err