this does not work
[org.ibex.core.git] / src / org / ibex / Picture.java
index d3ab4e9..afde3bb 100644 (file)
@@ -40,8 +40,8 @@ public class Picture {
                 InputStream in = null;
                 try {
                     in = b == null ? Stream.getInputStream(stream) : b.getImage();
-                } catch (IOException e) { Log.error(Picture.class, stream);
-                } catch (JSExn e) { Log.error(Picture.class, stream);
+                } catch (IOException e) { Log.error(Picture.class, e);
+                } catch (JSExn e) { Log.error(Picture.class, e);
                 }
                 if (in == null) { Log.warn(Picture.class, "couldn't load image for stream " + stream); return; }
                 try {