Permalink
Browse files

Catch errors serializing record

  • Loading branch information...
1 parent 7e62c13 commit a91a612b48c6308d28380baa8b5bc84c718b8c04 @ianb committed Apr 16, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 index.html
View
@@ -28,7 +28,11 @@
$('#unknown').hide();
$('#uninstalled').hide();
$('#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 {
$('#unknown').hide();
$('#installed').hide();

0 comments on commit a91a612

Please sign in to comment.