Fix error message when reading a resource/module past root dir (#1234)

This commit is contained in:
Daniel Chao
2025-10-09 10:16:33 -07:00
committed by GitHub
parent 3a29ea8998
commit 42dcad25c6
4 changed files with 43 additions and 30 deletions

View File

@@ -690,6 +690,12 @@ Refusing to read resource `{0}` because it does not match any entry in the resou
moduleNotInAllowList=\
Refusing to load module `{0}` because it does not match any entry in the module allowlist (`--allowed-modules`).
resourcePastRootDir=\
Refusing to read resource `{0}` because it is not within the root directory (`--root-dir`).
modulePastRootDir=\
Refusing to load module `{0}` because it is not within the root directory (`--root-dir`).
insufficientModuleTrustLevel=\
Refusing to import module `{0}` because importing module `{1}` has an insufficient trust level.