Skip to content

Commit f6d77c4

Browse files
committed
Merge branch 'feat-commands' of https://github.com/CSC207-2022F-UofT/mcpm into feat-commands
2 parents f4cc2c5 + 6dcdc8f commit f6d77c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/hydev/mcpm/client/database/SuperLocalPluginTracker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public SuperLocalPluginTracker(String mainLockFile, String pluginDirectory) {
6363
private PluginYml readMeta(File jar) {
6464
try (PluginJarFile InstancePluginJarFile = new PluginJarFile(jar)) {
6565
return InstancePluginJarFile.readPluginYaml();
66-
} catch (Exception e) {
66+
} catch (IOException e) {
6767
System.out.println("Error reading plugin.yml from " + jar);
6868
return null;
6969
}
@@ -552,7 +552,7 @@ private File getPluginFile(String name) {
552552
throw new Exception("Empty Directory.");
553553
}
554554

555-
} catch (Exception e) {
555+
} catch (IOException e) {
556556
throw new IllegalArgumentException("Plugin not found, error with directory iteration.");
557557
}
558558
}

0 commit comments

Comments
 (0)