Clarified ingest target errors

- Rejected target pack names outside letters, digits, underscores and hyphens before ingest starts
- Reported an existing target pack with a translated replace=true hint instead of the raw path
This commit is contained in:
Brian Neumann-Fopiano committed 2026-10-14 20:18:50 -04:00
1 parent 7fc8d20516
commit 769e077078
21 files changed
+31

No files matched your search

@@ -68,6 +68,7 @@ public class ModIngestArgumentsTest {
public void valuesAreValidated() {
assertEquals("replace must be true or false", reason("overworld modded replace=yes"));
assertEquals("invalid pack name '../evil'", reason("../evil modded"));
assertEquals("invalid target pack name 'modded.v2'", reason("overworld modded.v2"));
assertEquals("invalid dimension key 'a..b'", reason("overworld modded dimension=a..b"));
assertEquals("invalid namespace 'Bad'", reason("overworld modded namespaces=ok,Bad"));
assertEquals("namespaces must not be empty", reason("overworld modded namespaces=,"));