diff options
| author | Brian Cosgrove <cosgroveb@gmail.com> | 2025-06-11 13:12:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 19:12:20 +0100 |
| commit | 306f5e1104dbf707cf00ea1f0dbd9c390752f7ac (patch) | |
| tree | 3f570c8021947c4af2814bf2cc59cede401606e9 /crates/atuin-server-sqlite | |
| parent | fix: `atuin.nu` enchancements (#2778) (diff) | |
| download | atuin-306f5e1104dbf707cf00ea1f0dbd9c390752f7ac.zip | |
fix(search): prevent panic on malformed format strings (#2776) (#2777)
* fix(search): prevent panic on malformed format strings (#2776)
- Wrap format operations in panic catcher for graceful error handling
- Improve error messages with context-aware guidance for common issues
- Let runtime-format parser handle validation to avoid blocking valid formats
Fixes crash when using malformed format strings by catching formatting
errors gracefully and providing actionable guidance without restricting
legitimate format patterns like {command} or {time}.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Satisfy cargo fmt
* test(search): add regression tests for format string panic (#2776)
- Add test for malformed JSON format strings that previously caused panics
- Add test to ensure valid format strings continue to work
- Prevent future regressions of the format string panic issue
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
