summaryrefslogtreecommitdiffstats
path: root/pkg/gui/errors.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-03 13:43:43 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commitf1d7f59e497a2da9066494d04f26e1ff00a0e4ee (patch)
treef51b629766de0778f4e6b9cd37f44af9db0edaad /pkg/gui/errors.go
parentbc9a99387f68afb24863d17ab4d29c1686843a76 (diff)
switching repos without restarting the gui
Diffstat (limited to 'pkg/gui/errors.go')
-rw-r--r--pkg/gui/errors.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkg/gui/errors.go b/pkg/gui/errors.go
index 651b964c2..c275fcdcc 100644
--- a/pkg/gui/errors.go
+++ b/pkg/gui/errors.go
@@ -5,9 +5,7 @@ import "github.com/go-errors/errors"
// SentinelErrors are the errors that have special meaning and need to be checked
// by calling functions. The less of these, the better
type SentinelErrors struct {
- ErrNoFiles error
- ErrSwitchRepo error
- ErrRestart error
+ ErrNoFiles error
}
const UNKNOWN_VIEW_ERROR_MSG = "unknown view"
@@ -24,14 +22,12 @@ const UNKNOWN_VIEW_ERROR_MSG = "unknown view"
// localising things in the code.
func (gui *Gui) GenerateSentinelErrors() {
gui.Errors = SentinelErrors{
- ErrNoFiles: errors.New(gui.Tr.NoChangedFiles),
- ErrSwitchRepo: errors.New("switching repo"),
+ ErrNoFiles: errors.New(gui.Tr.NoChangedFiles),
}
}
func (gui *Gui) sentinelErrorsArr() []error {
return []error{
gui.Errors.ErrNoFiles,
- gui.Errors.ErrSwitchRepo,
}
}