diff options
| author | Jeff Carr <[email protected]> | 2025-02-15 12:17:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-15 12:21:37 -0600 |
| commit | 58790a760df71de9ee206e86533360b92f2d0d4c (patch) | |
| tree | 77bba6e91b228ec9a21fa26767a7ba125dfe9309 | |
| parent | 088a2f65152a84583519fe89effbd92435e0eb2e (diff) | |
minor
| -rw-r--r-- | config.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |
