Skip to content

Commit

Permalink
fix: config loading file not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
auula committed Apr 26, 2024
1 parent 0d05107 commit fca8513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func Load(file string, opt *ServerConfig) error {

// 检查文件是否存在
_, err := os.Stat(file)
if os.IsNotExist(err) {
if err != nil {
return err
}

Expand Down

0 comments on commit fca8513

Please sign in to comment.