diff options
author | Carolyn MacLeod <carolyn> | 2006-02-07 21:38:27 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2006-02-07 21:38:27 +0000 |
commit | 8893f517660270ca90d80d35c2c7eb9e8f50245a (patch) | |
tree | 10e37dc1912333d5249918264ea96eb682610e18 | |
parent | 771da6ba3ac4112d6141b3608cdff56dd0cd22b9 (diff) | |
download | eclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.tar.gz eclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.tar.xz eclipse.platform.swt-8893f517660270ca90d80d35c2c7eb9e8f50245a.zip |
bug 70167
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java index 792bf2755c..6724c35533 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java @@ -38,7 +38,11 @@ public ImageData[] loadFromStream(LEDataInputStream stream) { inputStream = stream; return loadFromByteStream(); } catch (Exception e) { - SWT.error(SWT.ERROR_IO, e); + if (e instanceof IOException) { + SWT.error(SWT.ERROR_IO, e); + } else { + SWT.error(SWT.ERROR_INVALID_IMAGE, e); + } return null; } } |