Commit ef04e39b authored by Leigh Stoller's avatar Leigh Stoller

Catch XML parse errors; this needs more work.

parent 74a70dca
......@@ -624,7 +624,15 @@ function (_, sup, filesize, ShowImagingModal,
*/
function ExtractFromRspec(rspec)
{
var xmlDoc = $.parseXML(rspec);
var xmlDoc;
try {
xmlDoc = $.parseXML(rspec);
}
catch(err) {
alert("Could not parse XML!");
return -1;
}
var xml = $(xmlDoc);
$('#profile_description').val("");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment