mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 02:20:53 +00:00
Error message corrected
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user