diff --git a/samples/01_rtf/rtf.html b/samples/01_rtf/rtf.html
index 6ee7745..7dc2d65 100644
--- a/samples/01_rtf/rtf.html
+++ b/samples/01_rtf/rtf.html
@@ -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) {