diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-13 14:17:59 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-13 14:17:59 -0800 |
commit | 774f9587527e677a2d1d8a6dc53aead0a8863d36 (patch) | |
tree | 8bb4273d4b3f69e3d6e7be42b72fab8b7242d363 | |
parent | ffa8654af317bfb05b1d38a17aa4a972d1c8056d (diff) |
testing issue finding config bucket
-rw-r--r-- | system/db/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/db/config.go b/system/db/config.go index ecddd54..31574ab 100644 --- a/system/db/config.go +++ b/system/db/config.go @@ -108,6 +108,9 @@ func ConfigAll() ([]byte, error) { val := &bytes.Buffer{} err := store.View(func(tx *bolt.Tx) error { b := tx.Bucket([]byte("__config")) + if b == nil { + return fmt.Errorf("Error finding bucket: %s", "__config") + } _, err := val.Write(b.Get([]byte("settings"))) if err != nil { return err |