Skip to content

Commit

Permalink
Check for AccessDeniedException in Jar provider.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Jul 15, 2018
1 parent 6807c64 commit caa2340
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.AccessDeniedException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -97,8 +97,8 @@ public void extract(CommandSender sender, File src, File dest) {
}
jis.closeEntry();
mm.extractionComplete(sender, dest.getAbsolutePath());
} catch (FileNotFoundException e) {
mm.fileNotFound(sender, src.getAbsolutePath());
} catch (AccessDeniedException e) {
mm.fileAccessDenied(sender, ZTask.EXTRACT, e.getMessage());
} catch (TaskInterruptedException e) {
mm.taskInterruption(sender, ZTask.EXTRACT);
} catch (IOException e) {
Expand Down

0 comments on commit caa2340

Please sign in to comment.