As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 4989011b authored by Igor Drozdov's avatar Igor Drozdov
Browse files

Merge branch 'wc-intern-err' into 'main'

Suppress internal errors in client output

See merge request gitlab-org/gitlab-shell!549
parents 3038ae45 3a8bab43
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,9 @@ import (
"os"
"reflect"
grpccodes "google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"
"gitlab.com/gitlab-org/labkit/log"
shellCmd "gitlab.com/gitlab-org/gitlab-shell/cmd/gitlab-shell/command"
Loading
Loading
@@ -71,7 +74,9 @@ func main() {
if err := cmd.Execute(ctx); err != nil {
ctxlog.WithError(err).Warn("gitlab-shell: main: command execution failed")
console.DisplayWarningMessage(err.Error(), readWriter.ErrOut)
if grpcstatus.Convert(err).Code() != grpccodes.Internal {
console.DisplayWarningMessage(err.Error(), readWriter.ErrOut)
}
os.Exit(1)
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment