Skip to content

Commit 4248208

Browse files
MichaelGitLab
authored andcommitted
Improve logging on errors
1 parent c2d73ce commit 4248208

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/gitlab-shell-authorized-principals-check/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func run() int {
4242

4343
config, err := config.NewFromDirExternal(executable.RootDir)
4444
if err != nil {
45-
_, _ = fmt.Fprintln(readWriter.ErrOut, "Failed to read config, exiting")
45+
_, _ = fmt.Fprintln(readWriter.ErrOut, "Failed to read config, exiting:", err)
4646
return 1
4747
}
4848

cmd/gitlab-shell/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func main() {
4545

4646
config, err := config.NewFromDirExternal(executable.RootDir)
4747
if err != nil {
48-
fmt.Fprintln(readWriter.ErrOut, "Failed to read config, exiting")
48+
fmt.Fprintln(readWriter.ErrOut, "Failed to read config, exiting:", err)
4949
os.Exit(1)
5050
}
5151

0 commit comments

Comments
 (0)