summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJames Mills <james@mills.io>2022-08-01 03:22:17 +0000
committerJames Mills <james@mills.io>2022-08-01 03:22:17 +0000
commit35217febfc2c5d6a7e5d5d2b0b3c10a168fb2ed1 (patch)
treea9e7276d1e607646da113a4bf52fbb1698e1818a /main.go
parent3b7c29eb8abbc63eb817e5533e40adcc62c5e8da (diff)
Add support for multi-arch binary and docker image releases (#20)
Reviewed-on: https://git.mills.io/prologic/tube/pulls/20
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.go b/main.go
index ae23f86..0f9331f 100644
--- a/main.go
+++ b/main.go
@@ -42,8 +42,12 @@ func main() {
cfg := app.DefaultConfig()
err := cfg.ReadFile(config)
- if err != nil && !os.IsNotExist(err) {
- log.Fatal(err)
+ if err == nil {
+ log.Infof("reading configuration from %s", config)
+ } else {
+ if !os.IsNotExist(err) {
+ log.Fatal(err)
+ }
}
a, err := app.NewApp(cfg)
if err != nil {