mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 20:53:18 +08:00
Refactor error handling
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
@ -23,5 +22,5 @@ func LoadTemplate(templatePath string) ([]byte, error) {
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
return nil, errors.New("模板文件不存在")
|
||||
return nil, NewFileNotFoundError(templatePath)
|
||||
}
|
||||
|
Reference in New Issue
Block a user