From fd2a6ecbdfa3c093980e5da66217355c754e14cd Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 18 Dec 2020 17:07:48 -0500 Subject: [PATCH] Show stash error details in the error message view --- ui/stash.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/stash.go b/ui/stash.go index eab362b..2accdca 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -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),