summaryrefslogtreecommitdiff
path: root/cmd/planr/sub/common.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 18:57:59 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-05 18:57:59 -0500
commit91666d1f2e766bc7c3073ed4cd731637c6885e36 (patch)
tree77f08826098918355fbce5da2ea939eafbc24f6e /cmd/planr/sub/common.go
parent465969af0d6a3e69e56de2048eb811e68d6f27a1 (diff)
downloaddeb-planr-91666d1f2e766bc7c3073ed4cd731637c6885e36.tar.xz
deb-planr-91666d1f2e766bc7c3073ed4cd731637c6885e36.zip
Do not throw fatal error when missing config, this behavior will be enabled in future releases
Diffstat (limited to 'cmd/planr/sub/common.go')
-rw-r--r--cmd/planr/sub/common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/planr/sub/common.go b/cmd/planr/sub/common.go
index 67d07f8..9126f3c 100644
--- a/cmd/planr/sub/common.go
+++ b/cmd/planr/sub/common.go
@@ -6,8 +6,8 @@ import (
"fmt"
)
-func dieIncompatibleVersion(cfg planr.Config) {
- if cfg.IncompatibleWithVersion() {
+func dieIncompatibleVersion(cfg *planr.Config) {
+ if cfg != nil && cfg.IncompatibleWithVersion() {
fmt.Fprintf(os.Stderr, "This version of PlanR (%v) is incompatible with config version %s\n", planr.VERSION, cfg.Version)
fmt.Fprintf(os.Stderr, "Please upgrade to version %s or greater\n", cfg.Version)
os.Exit(1)