Better error passing from early to game client launch.

This commit is contained in:
cpw committed 2018-10-04 00:57:08 -04:00
1 parent c6e7bbe18b
commit d5e04dbcb5
16 files changed
+183 -119

No files matched your search

@@ -59,8 +59,8 @@ public class ModLoadingException extends RuntimeException
this.context = Arrays.asList(context);
}
static ModLoadingException fromEarlyException(final EarlyLoadingException e) {
return new ModLoadingException(null, ModLoadingStage.VALIDATE, e.getI18NMessage(), e, e.getContext().toArray());
static Stream<ModLoadingException> fromEarlyException(final EarlyLoadingException e) {
return e.getAllData().stream().map(ed->new ModLoadingException(null, ModLoadingStage.VALIDATE, ed.getI18message(), e.getCause(), ed.getArgs()));
}
public String getI18NMessage() {