fix(config): fix error and logging handling

This commit is contained in:
yusing
2025-10-11 14:00:04 +08:00
parent e67704695b
commit 7ea415078f
3 changed files with 36 additions and 26 deletions

View File

@@ -13,8 +13,7 @@ import (
)
type State interface {
// InitFromFileOrExit logs and exits on critical errors, non-critical ones will be returned
InitFromFileOrExit(filename string) error
InitFromFile(filename string) error
Init(data []byte) error
Task() *task.Task