Improve json output of errors

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/openbmc-events b/openbmc-events
index 827ed7c..e0493c6 100755
--- a/openbmc-events
+++ b/openbmc-events
@@ -2,6 +2,7 @@
 
 import argparse
 import requests
+import json
 
 import urllib3
 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
@@ -58,6 +59,7 @@
 def do_view_event(args):
     s = BMC(server=args.server)
     print(s.get_event(args.event))
+    print json.dumps(s.get_event(args.event), indent=4)
 
 def do_clear_event(args):
     s = BMC(server=args.server)