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 ddc1bdc9 authored by gaurav.marwal's avatar gaurav.marwal
Browse files

Fix exitAfterDefer error in authorized keys check main

parent 13735001
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,7 +43,6 @@ func main() {
}
logCloser := logger.Configure(config)
defer logCloser.Close()
cmd, err := cmd.New(os.Args[1:], config, readWriter)
if err != nil {
Loading
Loading
@@ -54,10 +53,12 @@ func main() {
}
ctx, finished := command.Setup(executable.Name, config)
defer finished()
if _, err = cmd.Execute(ctx); err != nil {
console.DisplayWarningMessage(err.Error(), readWriter.ErrOut)
os.Exit(1)
}
defer func() { _ = logCloser.Close() }()
defer finished()
}
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