diff options
| author | Peter Holloway <holloway.p.r@gmail.com> | 2024-01-24 20:13:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-24 20:13:31 +0000 |
| commit | 400e1ba23d4b26ebb23b5c41db4983920ecaf9aa (patch) | |
| tree | 51c9e9f738d98068d938fc7a9f2655f9b3792ec6 /CONTRIBUTING.md | |
| parent | stats: Misc improvements (#1613) (diff) | |
| download | atuin-400e1ba23d4b26ebb23b5c41db4983920ecaf9aa.zip | |
fix: Check for format errors when printing history (#1623)
The runtime formatting used to list history commands can fail in its
Display implementation and the error is not propagated through to the
write error it causes. Instead, the error is cached in the FormatArgs
being printed. It's a bit clumsy but by checking if there's a cached
error, we can get a more useful error for the user. eg,
atuin search cargo --format '{invalid}'
gives
history output failed with: The requested key "invalid" is unknown
instead of
history output failed with: formatter error
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions
