TGViewer
Находки в опенсорсе Находки в опенсорсе @opensource_findings · 12.7K subscribers
Post #400 1.93K
fs-err is a drop-in replacement for #rust 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
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
More from @opensource_findings
  1. Oct 9, 2026Post #990
  2. Sep 28, 2026Еще анонсы докладов на бесплатную конференцию 17 октября в НН Регистрация: https://itgorky…
  3. Sep 25, 2026Монадические выражения в Python. Наконец-то! Продолжаем разговор про интересные PEPы. Пого…
  4. Sep 15, 2026PEPы в Python окончательно вышли из-под контроля Давайте посмотрим, что происходит с ПЕПам…
  5. Sep 10, 2026Большая бесплатная конференция в Нижнем Новгороде 17 октября Регистрация: https://itgorky.…
  6. Sep 1, 2026Post #985
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →