From 3f70fd49fff61f8e5c681f3499552f1258c7138f Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Thu, 11 Apr 2019 18:57:37 -0400 Subject: [PATCH] Fix missing string parameters in some log messages (#5210) --- .../fml/common/ObfuscationReflectionHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/minecraftforge/fml/common/ObfuscationReflectionHelper.java b/src/main/java/net/minecraftforge/fml/common/ObfuscationReflectionHelper.java index d25e74e5bc..43c680266f 100644 --- a/src/main/java/net/minecraftforge/fml/common/ObfuscationReflectionHelper.java +++ b/src/main/java/net/minecraftforge/fml/common/ObfuscationReflectionHelper.java @@ -72,7 +72,7 @@ public class ObfuscationReflectionHelper } catch (Exception e) { - LOGGER.error(REFLECTION, "There was a problem getting field index {} from {}", classToAccess.getName(), e); + LOGGER.error(REFLECTION, "There was a problem getting field index {} from {}", fieldIndex, classToAccess.getName(), e); throw new UnableToAccessFieldException(e); } } @@ -105,7 +105,7 @@ public class ObfuscationReflectionHelper } catch (IllegalAccessException e) { - LOGGER.error("There was a problem setting field index {} on type {}", classToAccess.getName(), e); + LOGGER.error("There was a problem setting field index {} on type {}", fieldIndex, classToAccess.getName(), e); throw new UnableToAccessFieldException(e); } } @@ -118,12 +118,12 @@ public class ObfuscationReflectionHelper } catch (UnableToFindFieldException e) { - LOGGER.error("Unable to locate any field {} on type {}", classToAccess.getName(), e); + LOGGER.error("Unable to locate any field {} on type {}", fieldName, classToAccess.getName(), e); throw e; } catch (IllegalAccessException e) { - LOGGER.error("Unable to set any field {} on type {}", classToAccess.getName(), e); + LOGGER.error("Unable to set any field {} on type {}", fieldName, classToAccess.getName(), e); throw new UnableToAccessFieldException(e); } }