Improve MixinTargetAlreadyLoadedException exception message

This commit is contained in:
Runemoro authored and GitHub committed 2019-06-18 16:44:57 -04:00
1 parent 2c72246fe0
commit 23bc38b6fc
1 file changed
+1 -1
@@ -880,7 +880,7 @@ class MixinInfo implements Comparable<MixinInfo>, IMixinInfo {
for (String targetRef : inTargets) {
String targetName = targetRef.replace('/', '.');
if (MixinInfo.classLoaderUtil.isClassLoaded(targetName) && !this.isReloading()) {
String message = String.format("Critical problem: %s target %s was already transformed.", this, targetName);
String message = String.format("Critical problem: %s target %s was loaded too early.", this, targetName);
if (this.parent.isRequired()) {
throw new MixinTargetAlreadyLoadedException(this, message, targetName);
}