mirror of
https://github.com/tbluemel/rtf.js.git
synced 2026-11-30 16:47:59 +01:00
Fix rtf sample error reporting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user