Correct exception behavior for Shrinkit file not found situations

This commit is contained in:
2012-08-13 03:27:09 +00:00
parent c0fbb83867
commit 0935e13c51
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class Utilities
File file = new File(fileName);
if (file.isDirectory() || !file.canRead())
{
throw new IllegalArgumentException(textBundle.format("NotAFile", fileName, 1)); //$NON-NLS-1$
throw new IOException(textBundle.format("NotAFile", fileName, 1)); //$NON-NLS-1$
}
InputStream is = new FileInputStream(file);
NuFileArchive a = new NuFileArchive(is);