Skip to content

Commit

Permalink
Catch errors serializing record
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Apr 16, 2012
1 parent 7e62c13 commit a91a612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Expand Up @@ -28,7 +28,11 @@
$('#unknown').hide(); $('#unknown').hide();
$('#uninstalled').hide(); $('#uninstalled').hide();
$('#installed').show(); $('#installed').show();
$('#record').text(JSON.stringify(this.result, null, true)); try {
$('#record').text(JSON.stringify(this.result, null, true));
} catch (e) {
$('#record').text('Error serializing record: ' + e);
}
} else { } else {
$('#unknown').hide(); $('#unknown').hide();
$('#installed').hide(); $('#installed').hide();
Expand Down

0 comments on commit a91a612

Please sign in to comment.