mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Catch ajax status errors and display
This commit is contained in:
@@ -94,7 +94,13 @@
|
||||
$("#success_button").show();
|
||||
}
|
||||
} catch (error) {
|
||||
$("#error_message").text("Installation failed: " + error).show();
|
||||
var errormsg = '';
|
||||
if (typeof error === 'object') {
|
||||
errormsg = error.statusText;
|
||||
} else {
|
||||
errormsg = error;
|
||||
}
|
||||
$("#error_message").text("Installation failed: " + errormsg).show();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -376,4 +382,4 @@
|
||||
|
||||
<?php include 'includes/interface_assets/footer.php'; ?>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user