InputManager’s addMapping warning fix w/ diff

Just a little thing, but when doing several remapping it can’t be hard to find which mapping is exactly causing the problem.

As it was, the message didn’t include the “mappingName” as the single quotes were not escaped. I think double quotes are better since they’re easier to see.

[java]

— Remotely Modified (Based On HEAD)

+++ Locally Modified (Based On LOCAL)

@@ -434,7 +434,7 @@

names.add(mapping);

mapping.triggers.add(hash);

} else {

  •            logger.log(Level.WARNING, &quot;Attempted to add mapping '{0}' twice to trigger.&quot;, mappingName);<br />
    
  •            logger.log(Level.WARNING, &quot;Attempted to add mapping &quot;{0}&quot; twice to trigger.&quot;, mappingName);<br />
    

}

}

}

[/java]



EDIT: Great. The JAVA tag removes the backslashes before “{ and after }”. Might be why the error is in the source in the first place. :confused: Anyway, please use the escaped quotes. :wink:

Thanks, fixed in SVN

1 Like