diff options
author | Giorgio Previtera <gprevitera@equalexperts.com> | 2019-07-07 19:15:11 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-07-14 14:24:18 +1000 |
commit | 9fb9962ce7043bc3152bb0bee4a7ac17c35592d6 (patch) | |
tree | 01380da3b47b930bb89b7eb9cc4681257d0e3939 /pkg/i18n/polish.go | |
parent | 25c93c678d0c198ef1610ec9d8743d8ae1e81a84 (diff) |
472 - Don't panic if not in a repository
Display a friendly message and exit with an error if not
in a Git repository. Using the same approach used in this PR:
https://github.com/jesseduffield/lazydocker/pull/14/files
Diffstat (limited to 'pkg/i18n/polish.go')
-rw-r--r-- | pkg/i18n/polish.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index bd5fed9d5..7b32b3eaa 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -731,6 +731,9 @@ func addPolish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ ID: "stashOptions", Other: "Stash options", + }, &i18n.Message{ + ID: "notARepository", + Other: "Error: must be run inside a repository", }, ) } |