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:
parent
4f6a75b701
commit
bc6a4a20d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user