Fix for Load()
This commit is contained in:
parent
c7a0f7478f
commit
9f706d7928
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue