diff options
Diffstat (limited to 'helpers.go')
-rw-r--r-- | helpers.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -4,6 +4,8 @@ import ( "io/ioutil" "net" "os" + + "gitlab.com/gitlab-org/labkit/errortracking" ) func readFile(file string) (result []byte) { @@ -60,3 +62,8 @@ func fileForListener(l net.Listener) *os.File { return f } + +func capturingFatal(err error, fields ...errortracking.CaptureOption) { + errortracking.Capture(err, fields...) + fatal(err) +} |