Show stash error details in the error message view

This commit is contained in:
Christian Rocha 2020-12-18 17:07:48 -05:00
parent 6be1af4103
commit fd2a6ecbdf

View file

@ -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("Couldnt stash %s", msg.markdown.Note),