Correct exception behavior for Shrinkit file not found situations
This commit is contained in:
parent
c0fbb83867
commit
0935e13c51
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue