summaryrefslogtreecommitdiff
path: root/cmd/gitlab-shell
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-09-11 23:01:40 +1000
committerIgor Drozdov <idrozdov@gitlab.com>2019-10-23 11:07:22 +0300
commit1bade9e198f08437ad150e63dc751edb862a6f51 (patch)
treeddc792be9340130c00cbac2faa30a1da1ccf7428 /cmd/gitlab-shell
parent412ed17cc66d876c46ee8df3767066ca0e676f28 (diff)
downloadgitlab-shell-1bade9e198f08437ad150e63dc751edb862a6f51.tar.gz
More consistent console messages (golang)
Diffstat (limited to 'cmd/gitlab-shell')
-rw-r--r--cmd/gitlab-shell/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gitlab-shell/main.go b/cmd/gitlab-shell/main.go
index 148c652..7751e4d 100644
--- a/cmd/gitlab-shell/main.go
+++ b/cmd/gitlab-shell/main.go
@@ -7,6 +7,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/internal/command"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/readwriter"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
+ "gitlab.com/gitlab-org/gitlab-shell/internal/console"
"gitlab.com/gitlab-org/gitlab-shell/internal/executable"
)
@@ -38,7 +39,7 @@ func main() {
}
if err = cmd.Execute(); err != nil {
- fmt.Fprintf(readWriter.ErrOut, "%v\n", err)
+ console.DisplayWarningMessage(err.Error(), readWriter.ErrOut)
os.Exit(1)
}
}