summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 12:17:08 -0600
committerJeff Carr <[email protected]>2025-02-15 12:21:37 -0600
commit58790a760df71de9ee206e86533360b92f2d0d4c (patch)
tree77bba6e91b228ec9a21fa26767a7ba125dfe9309
parent088a2f65152a84583519fe89effbd92435e0eb2e (diff)
minor
-rw-r--r--config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.go b/config.go
index 800b7ba..33f4b89 100644
--- a/config.go
+++ b/config.go
@@ -5,6 +5,7 @@ package zoopb
import (
"errors"
+ "fmt"
"os"
"path/filepath"
@@ -15,6 +16,9 @@ import (
// writes out the cluster information it seperate files
// to make it humanly possible to hand edit things as needed
func (m *Machines) ConfigSave() error {
+ if m == nil {
+ return fmt.Errorf("ConfigSave() machines == n")
+ }
data, err := m.Marshal()
if err != nil {
log.Info("proto.Marshal() failed len", len(data), err)