• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Main repository of MikuMikuStudio


Commit MetaInfo

Revision01291ac49ffe20f5d0826e6795e19e8b092c6810 (tree)
Time2013-03-25 06:48:44
AuthorZeroSeparation@gmail.com <ZeroSeparation@gmai...>
CommiterZeroSeparation@gmail.com

Log Message

Added error logging to SettingsDialogue as requested by toolforger.

git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10500 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

Change Summary

Incremental Difference

--- a/engine/src/desktop/com/jme3/app/SettingsDialog.java
+++ b/engine/src/desktop/com/jme3/app/SettingsDialog.java
@@ -258,9 +258,8 @@ public final class SettingsDialog extends JDialog {
258258 try {
259259 URL file = new URL("file:" + image);
260260 setImage(file);
261- // We can safely ignore the exception - it just means that the user
262- // gave us a bogus file
263261 } catch (MalformedURLException e) {
262+ logger.log(Level.WARNING, "Couldn’t read from file '" + image + "'", e);
264263 }
265264 }
266265
@@ -503,7 +502,7 @@ public final class SettingsDialog extends JDialog {
503502 Method setIconImages = getClass().getMethod("setIconImages", List.class);
504503 setIconImages.invoke(this, icons);
505504 } catch (Exception e) {
506- return;
505+ logger.log(Level.WARNING, "Error setting icon images", e);
507506 }
508507 }
509508
@@ -697,6 +696,7 @@ public final class SettingsDialog extends JDialog {
697696 try {
698697 url = new URL("file:" + file);
699698 } catch (MalformedURLException e) {
699+ logger.log(Level.WARNING, "Invalid file name '" + file + "'", e);
700700 }
701701 return url;
702702 }