No need to throw an exception if the "last updated" file is corrupt.

This commit is contained in:
Kristian S. Stangeland 2014-02-18 21:46:42 +01:00
parent 6443de6257
commit 7503470cb1

View File

@ -110,14 +110,13 @@ public class ProtocolConfig {
try {
return Long.parseLong(Files.toString(dataFile, Charsets.UTF_8));
} catch (NumberFormatException e) {
throw new RuntimeException("Cannot parse " + dataFile + " as a number.", e);
plugin.getLogger().warning("Cannot parse " + dataFile + " as a number.");
} catch (IOException e) {
throw new RuntimeException("Cannot read " + dataFile, e);
plugin.getLogger().warning("Cannot read " + dataFile);
}
} else {
// Default last update
return 0;
}
// Default last update
return 0;
}
/**