mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-11 22:31:45 +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 = new YamlConfiguration();
|
||||||
config.load(yamlFile);
|
config.load(yamlFile);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
Bukkit.getLogger().severe("Could not load YAML file: " + file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
@ -122,7 +122,7 @@ public abstract class Addon implements AddonInterface {
|
|||||||
try {
|
try {
|
||||||
this.config.save(new File(dataFolder, ADDON_CONFIG_FILENAME));
|
this.config.save(new File(dataFolder, ADDON_CONFIG_FILENAME));
|
||||||
} catch (IOException e) {
|
} 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) {
|
} 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