Better error handling when importing xml via web ui