summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/repos_helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/helpers/repos_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/repos_helper.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/repos_helper.go b/pkg/gui/controllers/helpers/repos_helper.go
index 22883510a..decebba36 100644
--- a/pkg/gui/controllers/helpers/repos_helper.go
+++ b/pkg/gui/controllers/helpers/repos_helper.go
@@ -1,6 +1,7 @@
package helpers
import (
+ "errors"
"fmt"
"os"
"path/filepath"
@@ -156,7 +157,7 @@ func (self *ReposHelper) DispatchSwitchTo(path string, errMsg string, contextKey
if err := os.Chdir(path); err != nil {
if os.IsNotExist(err) {
- return self.c.ErrorMsg(errMsg)
+ return errors.New(errMsg)
}
return err
}