diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 03:42:29 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 03:42:29 -0500 |
| commit | fa498f31dfff7c7a5b9f63d2e5c004d400f3d756 (patch) | |
| tree | ae14a54cb08ec0b0151fc1d3581e6437cc5014fd /config.go | |
| parent | 110b5104785a4ee66c2e8adffdcf7fe21ba735bd (diff) | |
maybe fixed finally (?)
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -115,10 +115,6 @@ func LoadStdConfig() (*ForgeConfigs, error) { cfg := NewForgeConfigs() err := config.ConfigLoad(cfg, "forge", "forge") - if cfg.Filename == "" { - panic("lib/config broken. filename is blank") - } - // todo: do something here with this error? // right now, handled in forge // todo: move the code from forge here @@ -134,6 +130,10 @@ func LoadStdConfig() (*ForgeConfigs, error) { log.Info("some other bad problem err=", err) } + if cfg.Filename == "" { + panic("lib/config broken. filename is blank") + } + return cfg, nil } |
