Error message for invalid JSON response
This commit is contained in:
parent
f277ec16e1
commit
0859bb6922
@ -10,7 +10,7 @@ $(document).ready(function() {
|
|||||||
$('#resultCard').show();
|
$('#resultCard').show();
|
||||||
$('#errorAlert').hide();
|
$('#errorAlert').hide();
|
||||||
} else {
|
} else {
|
||||||
$('#errorAlert').text(resultDataJSON.error);
|
$('#errorAlert').text(resultDataJSON.error || 'Invalid response received');
|
||||||
$('#errorAlert').show();
|
$('#errorAlert').show();
|
||||||
$('#resultCard').hide();
|
$('#resultCard').hide();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user