]> source.dussan.org Git - poi.git/commitdiff
re-throw errors we aren't looking for
authorJaven O'Neal <onealj@apache.org>
Sun, 3 Jan 2016 09:48:05 +0000 (09:48 +0000)
committerJaven O'Neal <onealj@apache.org>
Sun, 3 Jan 2016 09:48:05 +0000 (09:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722708 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/sl/usermodel/BaseTestSlideShowFactory.java

index a6652fd04827317f8fc5341e7fab17f1954ef0f9..bc95aa91b3820c4218e047acb7f70b67111e57b2 100644 (file)
@@ -125,7 +125,10 @@ public class BaseTestSlideShowFactory {
         byte[] bytes;
         try {
             bytes = _slTests.readFile(filename);
-        } catch (final Exception e) {
+        } catch (final RuntimeException e) {
+            if (!e.getMessage().startsWith("Sample file '" + filename + "' not found in data dir")) {
+                throw e;
+            }
             bytes = readExternalFile(filename);
         }
         return bytes;