Show error if module loading fails.
Currently, if something goes wrong during module loading, the module loading dialog goes away without explanation.
This change displays an error message informing the user that something went wrong, possibly with enough information to
debug.
@@ -97,6 +97,7 @@ public void update(float delta) {
} catch (InterruptedException | ExecutionException e) {
logger.warn("An error occurred during execution", e);
getManager().popScreen();
+ getManager().pushScreen(MessagePopup.ASSET_URI, MessagePopup.class).setMessage("Error", e.getMessage());
}
}
