Main repository of MikuMikuStudio
Revision | 01291ac49ffe20f5d0826e6795e19e8b092c6810 (tree) |
---|---|
Time | 2013-03-25 06:48:44 |
Author | ZeroSeparation@gmail.com <ZeroSeparation@gmai...> |
Commiter | ZeroSeparation@gmail.com |
Added error logging to SettingsDialogue as requested by toolforger.
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@10500 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -258,9 +258,8 @@ public final class SettingsDialog extends JDialog { | ||
258 | 258 | try { |
259 | 259 | URL file = new URL("file:" + image); |
260 | 260 | setImage(file); |
261 | - // We can safely ignore the exception - it just means that the user | |
262 | - // gave us a bogus file | |
263 | 261 | } catch (MalformedURLException e) { |
262 | + logger.log(Level.WARNING, "Couldn’t read from file '" + image + "'", e); | |
264 | 263 | } |
265 | 264 | } |
266 | 265 |
@@ -503,7 +502,7 @@ public final class SettingsDialog extends JDialog { | ||
503 | 502 | Method setIconImages = getClass().getMethod("setIconImages", List.class); |
504 | 503 | setIconImages.invoke(this, icons); |
505 | 504 | } catch (Exception e) { |
506 | - return; | |
505 | + logger.log(Level.WARNING, "Error setting icon images", e); | |
507 | 506 | } |
508 | 507 | } |
509 | 508 |
@@ -697,6 +696,7 @@ public final class SettingsDialog extends JDialog { | ||
697 | 696 | try { |
698 | 697 | url = new URL("file:" + file); |
699 | 698 | } catch (MalformedURLException e) { |
699 | + logger.log(Level.WARNING, "Invalid file name '" + file + "'", e); | |
700 | 700 | } |
701 | 701 | return url; |
702 | 702 | } |