mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-31 11:29:52 +00:00
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…
x
Reference in New Issue
Block a user