Skip to content

Commit 580a3ba

Browse files
Patrick Bajaodecxxx
authored andcommitted
Merge branch '600-improve-error-logging' into 'main'
Improve logging on errors See merge request https://gitlab.com/gitlab-org/gitlab-shell/-/merge_requests/1156 Merged-by: Patrick Bajao <[email protected]> Approved-by: Denys Mishunov <[email protected]> Approved-by: Patrick Bajao <[email protected]> Reviewed-by: Patrick Bajao <[email protected]> Co-authored-by: dec0dedd <[email protected]>
2 parents 78aa6a5 + 4248208 commit 580a3ba

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)