diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-12-04 16:03:14 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-12-04 16:03:14 +0300 |
commit | a53367c30c69adafe1f32da247498168b8808645 (patch) | |
tree | 3807e646eca80f0a8cb2555f30ff5c516591928f /app.go | |
parent | a0d9ec2632a1392f5a16cbac25e44112c3d56cfa (diff) |
Improve error reporting in the main package
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |