Merge pull request #24 from lbryio/error-handling

Error handling
This commit is contained in:
Bill Bittner 2017-06-10 14:19:31 -07:00 committed by GitHub
commit f3e3cebd9d

View file

@ -124,7 +124,7 @@
updatePublishStatus(msg); updatePublishStatus(msg);
}); });
socket.on('publish-failure', function(msg){ socket.on('publish-failure', function(msg){
document.getElementById('publish-active-area').innerHTML = '<p>' + msg + '</p><p> --(✖╭╮✖)→ </p>'; document.getElementById('publish-active-area').innerHTML = '<p>' + JSON.stringify(msg) + '</p><p> --(✖╭╮✖)→ </p>';
}); });
socket.on('publish-complete', function(msg){ socket.on('publish-complete', function(msg){
var publishResults = '<p>Your publish is complete!</p>'; var publishResults = '<p>Your publish is complete!</p>';