diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-18 22:27:50 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-18 22:27:50 +1100 |
commit | 328b57e2cfe5479a1e128f2fe1944899978a4755 (patch) | |
tree | 2176faef3c1cdfdbd4285d665e0f8ce2b5427237 | |
parent | 20a94447d7bad91848ae75b391eaf6feb92e10c4 (diff) |
no longer checking for 'exit status 128' because we're directly returning stderr
-rw-r--r-- | pkg/gui/credentials_panel.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go index dd5461441..f310ac6ea 100644 --- a/pkg/gui/credentials_panel.go +++ b/pkg/gui/credentials_panel.go @@ -1,8 +1,6 @@ package gui import ( - "strings" - "github.com/jesseduffield/gocui" ) @@ -91,12 +89,8 @@ func (gui *Gui) HandleCredentialsPopup(g *gocui.Gui, popupOpened bool, cmdErr er _, _ = gui.g.SetViewOnBottom("credentials") } if cmdErr != nil { - errMessage := cmdErr.Error() - if strings.Contains(errMessage, "exit status 128") { - errMessage = gui.Tr.SLocalize("PassUnameWrong") - } // we are not logging this error because it may contain a password - _ = gui.createSpecificErrorPanel(errMessage, gui.getFilesView(gui.g), false) + _ = gui.createSpecificErrorPanel(cmdErr.Error(), gui.getFilesView(gui.g), false) } else { _ = gui.closeConfirmationPrompt(g) _ = gui.refreshSidePanels(g) |