cmd/faucet: proper error handling all over

This commit is contained in:
Péter Szilágyi
2017-10-17 12:08:57 +03:00
parent 0bb194c956
commit 7f7abfe4d1
3 changed files with 135 additions and 36 deletions

View File

@@ -140,10 +140,10 @@
$("#block").text(parseInt(msg.number, 16));
}
if (msg.error !== undefined) {
noty({layout: 'topCenter', text: msg.error, type: 'error'});
noty({layout: 'topCenter', text: msg.error, type: 'error', timeout: 5000, progressBar: true});
}
if (msg.success !== undefined) {
noty({layout: 'topCenter', text: msg.success, type: 'success'});
noty({layout: 'topCenter', text: msg.success, type: 'success', timeout: 15000, progressBar: true});
}
if (msg.requests !== undefined && msg.requests !== null) {
var content = "";