Add more loader tests.

This commit is contained in:
Jeffrey Regan
2019-01-22 14:08:17 -08:00
parent 077d554b76
commit 2e6bdd4041
2 changed files with 20 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ func newFileLoaderAt(
}
if !fSys.IsDir(absRoot) {
return nil, fmt.Errorf(
"absolute root dir '%s' does not exist", absRoot)
"'%s' does not exist or is not a directory", absRoot)
}
return &fileLoader{
roots: append(roots, absRoot),