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
path: root/app.go
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-04 16:03:14 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-12-04 16:03:14 +0300
commita53367c30c69adafe1f32da247498168b8808645 (patch)
tree3807e646eca80f0a8cb2555f30ff5c516591928f /app.go
parenta0d9ec2632a1392f5a16cbac25e44112c3d56cfa (diff)
Improve error reporting in the main package
Diffstat (limited to 'app.go')
-rw-r--r--app.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.go b/app.go
index 90b6320d..25a87785 100644
--- a/app.go
+++ b/app.go
@@ -456,6 +456,6 @@ func runApp(config appConfig) {
}
// fatal will log a fatal error and exit.
-func fatal(err error) {
- log.WithError(err).Fatal()
+func fatal(err error, message string) {
+ log.WithError(err).Fatal(message)
}