Error message corrected

This commit is contained in:
Mohd Bilal
2022-02-27 07:48:55 +00:00
parent 6dabba1d23
commit 3ec7b10bc0
2 changed files with 3 additions and 3 deletions

View File

@@ -551,7 +551,7 @@ components:
`),
},
runPath: "filesincomponents",
expectedError: "'/filesincomponents/stub.yaml' must be a directory to be a root",
expectedError: "'/filesincomponents/stub.yaml' must be a directory so that it can used as a build root",
},
"invalid-component-api-version": {
input: []FileGen{writeTestBase, writeOverlayProd,

View File

@@ -159,8 +159,8 @@ func demandDirectoryRoot(
}
if f != "" {
return "", fmt.Errorf(
"got file '%s', but '%s' must be a directory to be a root",
f, path)
"'%s' must be a directory so that it can used as a build root",
path)
}
return d, nil
}