mirror of
https://github.com/apache/poi.git
synced 2025-03-06 00:49:36 +00:00
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
c67f36cfee
commit
5283af50e3
@ -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…
x
Reference in New Issue
Block a user