Fix rtf sample error reporting

This commit is contained in:
Tom Z?hner
2020-05-31 19:09:20 +02:00
parent 9990dfc6ac
commit 70aa2def63
+5 -2
View File
@@ -95,10 +95,13 @@ function displayRtfFile(blob) {
}
});
} catch(e) {
if (e instanceof RTFJS.Error)
if (e instanceof RTFJS.Error) {
$("#content").text("Error: " + e.message);
else
throw e;
}
else {
throw e;
}
}
}
function stringToBinaryArray(string) {