aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/config.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-08-01 19:25:16 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-08-01 19:28:05 +0100
commit1fa9157f4b035198ecdd93490e31301c1071317d (patch)
tree73f65b13de0908e42e61c81cfb08967e2484c482 /pkg/datamaps/config.go
parentadd51ef91b96e604c00b447f58d5df5fa638b90e (diff)
tidying linting and checker errors
Diffstat (limited to 'pkg/datamaps/config.go')
-rw-r--r--pkg/datamaps/config.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/datamaps/config.go b/pkg/datamaps/config.go
index 7311fba..f370ba4 100644
--- a/pkg/datamaps/config.go
+++ b/pkg/datamaps/config.go
@@ -155,10 +155,13 @@ func defaultOptions() *Options {
}
dmPath, err := defaultDMPath()
- xlsxPath, err := defaultXLSXPath()
+ if err != nil {
+ log.Fatalf("unable to get default datamaps directory path: %v", err)
+ }
+ xlsxPath, err := defaultXLSXPath()
if err != nil {
- log.Fatalf("Unable to get default datamaps directory %v", err)
+ log.Fatalf("unable to get default XLSX directory path: %v", err)
}
homeDir, err := os.UserHomeDir()