this post was submitted on 20 Mar 2026
10 points (100.0% liked)
Rust Programming
9206 readers
8 users here now
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I just optimized the context messages and I'm now happy with:
The "0" context is especially important because it tells you which file is read-only. Here is the code for that:
I don't think something like "failed to clear dependencies using sqlite db '{}'" would be helpful. Something like "failed to" or "error when" does not really add any information. Just describe what is happening. Also, the "clear dependencies" would be redundant because that function can handle that part itself (see msg 1).