Compare commits

..

2 Commits

Author SHA1 Message Date
comp500
533c7a3ed5 Gson isn't broken, I'm broken 2019-06-24 03:41:33 +01:00
comp500
d18e134140 Better error reporting, fix NPE (stupid Gson) 2019-06-24 03:38:19 +01:00
2 changed files with 8 additions and 2 deletions

View File

@@ -122,7 +122,13 @@ public class Main {
ui.executeManager(new Runnable(){
@Override
public void run() {
new UpdateManager(uOptions, ui);
try {
new UpdateManager(uOptions, ui);
} catch (Exception e) {
// TODO: better error message?
ui.handleExceptionAndExit(e);
return;
}
}
});
} catch (Exception e) {

View File

@@ -140,7 +140,7 @@ public class UpdateManager {
return;
}
if (packFileSource.hashIsEqual(manifest.packFileHash)) {
if (manifest.packFileHash != null && packFileSource.hashIsEqual(manifest.packFileHash)) {
System.out.println("Hash already up to date!");
// WOOO it's already up to date
// todo: --force?