Add mod id to another kind of prepare/apply error message

This commit is contained in:
Player authored and Player committed 2021-11-05 12:11:43 +00:00
1 parent f6722f4f29
commit 1cccdecaf7
1 file changed
+1 -1
@@ -130,7 +130,7 @@ class MixinProcessor {
protected abstract String getContext(IMixinInfo mixin, String context);
public String getLogMessage(String context, InvalidMixinException ex, IMixinInfo mixin) {
return String.format("Mixin %s failed %s: %s %s", this.text, this.getContext(mixin, context), ex.getClass().getName(), ex.getMessage());
return String.format("Mixin %s for mod %s failed %s: %s %s", this.text, org.spongepowered.asm.mixin.FabricUtil.getModId(mixin.getConfig()), this.getContext(mixin, context), ex.getClass().getName(), ex.getMessage());
}
public String getErrorMessage(IMixinInfo mixin, IMixinConfig config, Phase phase) {