re-throw errors we aren't looking for

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-01-03 09:48:05 +00:00
parent 4f6a75b701
commit bc6a4a20d4

View File

@ -125,7 +125,10 @@ public class BaseTestSlideShowFactory {
byte[] bytes; byte[] bytes;
try { try {
bytes = _slTests.readFile(filename); 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); bytes = readExternalFile(filename);
} }
return bytes; return bytes;