fix: panic

This commit is contained in:
Yiyang Kang 2022-10-07 01:48:10 +08:00
parent 6e72144272
commit 3464f9a0f5
Signed by: kkyy
GPG Key ID: 80FD317ECAF06CC3
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ var (
func main() {
if err := cfg.LoadAuto(); err != nil {
panic(err)
msg.Errorf("Failed to load config: %v", err)
os.Exit(1)
}
flag.Parse()