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", 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": { "invalid-component-api-version": {
input: []FileGen{writeTestBase, writeOverlayProd, input: []FileGen{writeTestBase, writeOverlayProd,

View File

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