mirror of
https://github.com/charmbracelet/glow
synced 2025-03-04 14:57:13 +00:00
Show stash error details in the error message view
This commit is contained in:
parent
6be1af4103
commit
fd2a6ecbdf
1 changed files with 1 additions and 0 deletions
|
@ -654,6 +654,7 @@ func (m stashModel) update(msg tea.Msg) (stashModel, tea.Cmd) {
|
|||
// Note: mechanical stuff related to stash failure is handled in the parent
|
||||
// update function.
|
||||
case stashFailMsg:
|
||||
m.err = msg.err
|
||||
cmds = append(cmds, m.newStatusMessage(statusMessage{
|
||||
status: errorStatusMessage,
|
||||
message: fmt.Sprintf("Couldn’t stash ‘%s’", msg.markdown.Note),
|
||||
|
|
Loading…
Add table
Reference in a new issue