You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Api 159/better error handling in the client (#380)
example,
<img width="1108" height="73" alt="Screenshot 2026-03-25 at 12 19 57 AM"
src="https://github.com/user-attachments/assets/905010c2-9e6f-4517-a1ee-cb59131ac141"
/>
this adds a unified cli_error.rs handler to convert OxenError into user
readable error. so far we've been abusing oxenError::basic_str() and
bespoke eprintln!() at various layers. this should allow us to bubble up
the actual error message and handle it at a higher level.
---------
Co-authored-by: Nathan Stocks <nathan.s@oxen.ai>
Copy file name to clipboardExpand all lines: .claude/CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@ oxen push origin main # Push to remote
105
105
- When changing something that is documented in nearby code, or appears in any markdown files in the repository, update the affected documentation.
106
106
- When prompted to always do something a certain way in general, add an entry to this section of the CLAUDE.md file.
107
107
- When calling `get_staged_db_manager`, follow the doc comment on that function: drop the returned `StagedDBManager` as soon as possible (via a block scope or explicit `drop()`) to avoid holding the shared database handle longer than necessary.
108
+
- When altering the `OxenError` enum, consider whether a hint needs to be added or updated in the `hint` method.
108
109
- After changing any Rust code, verify that tests pass with the `bin/test-rust` script (not `cargo`). The script is documented in a comment at the top of its file.
0 commit comments