Add error handling for parsing xml

Hi, 

Problem: 
if the xml is not valid, command 'indent xml' would do nothing. I feel confused when first use the plugin. I thought: "wait, am i install the plugin right? Is it the way I trigger the plugin wrong?"

Solution:
A straightforward one: Pop up the console to show the error details.

Thanks,
Jiande