diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-05 18:57:59 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-05 18:57:59 -0500 |
| commit | b1cd5692b9c1139298d82ad610dad6657feb2590 (patch) | |
| tree | e1b032bc22f71a2a2c21307e02a3e127cba11746 /cmd/planr/sub/common.go | |
| parent | ce305f2f1a21e0a01176c1ff02668a5e1e9f57fe (diff) | |
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.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/planr/sub/common.go b/cmd/planr/sub/common.go index 7e896c1..ec67356 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) |
