mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +01:00
Improved exception handling error messages.
This commit is contained in:
parent
1e920825ef
commit
7e2f8052da
@ -101,7 +101,7 @@ public abstract class Addon implements AddonInterface {
|
||||
config = new YamlConfiguration();
|
||||
config.load(yamlFile);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
Bukkit.getLogger().severe("Could not load YAML file: " + file);
|
||||
}
|
||||
}
|
||||
return config;
|
||||
@ -122,7 +122,7 @@ public abstract class Addon implements AddonInterface {
|
||||
try {
|
||||
this.config.save(new File(dataFolder, ADDON_CONFIG_FILENAME));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Bukkit.getLogger().severe("Could not save config!");
|
||||
}
|
||||
}
|
||||
|
||||
@ -182,7 +182,7 @@ public abstract class Addon implements AddonInterface {
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
Bukkit.getLogger().severe("Could not save from jar file. From " + jarResource + " to " + destinationFolder.getAbsolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user