Fix for Load()

This commit is contained in:
Eugeny Leonov 2022-11-10 17:38:53 +05:00
parent c7a0f7478f
commit 9f706d7928
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func Exists(file string) bool {
//
// 0.2.0
func Load(file string) ([]byte, error) {
if !Exists(file) {
if !Exists(RealPath(file)) {
//return nil, errs.RaiseError(ErrFileNotFound, "File '"+file+"' not found")
return nil, fmt.Errorf("file not found: %s", file)
}