mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Fix error message when reading a resource/module past root dir (#1234)
This commit is contained in:
@@ -306,9 +306,7 @@ class EvaluatorsTest : AbstractTest() {
|
||||
val result = runTask("evalTest", expectFailure = true)
|
||||
assertThat(result.output).contains("Refusing to load module")
|
||||
assertThat(result.output)
|
||||
.contains(
|
||||
"because it does not match any entry in the module allowlist (`--allowed-modules`)."
|
||||
)
|
||||
.contains("because it is not within the root directory (`--root-dir`).")
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user