Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index cb46e322..39622c81 100644
--- a/helpers.go
+++ b/helpers.go
@@ -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)
+}