From: Bob J. <jac...@us...> - 2007-06-24 04:32:00
|
Update of /cvsroot/jmri/jmri/jmrit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv20876/src/jmri/jmrit Modified Files: DccLocoAddressSelector.java Log Message: refactor error reporting to make it possible to override for test Index: DccLocoAddressSelector.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrit/DccLocoAddressSelector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DccLocoAddressSelector.java 5 Feb 2006 04:07:56 -0000 1.3 --- DccLocoAddressSelector.java 24 Jun 2007 04:31:56 -0000 1.4 *************** *** 210,214 **** public JTextField getTextField() { if (textUsed) { ! log.error("getTextField invoked after text already requested"); return null; } --- 210,214 ---- public JTextField getTextField() { if (textUsed) { ! reportError("getTextField invoked after text already requested"); return null; } *************** *** 217,220 **** --- 217,224 ---- } + void reportError(String msg) { + log.error(msg, new Exception("traceback")); + } + /* * Get the selector box for picking long/short as a separate |