summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2017-05-24 21:01:53 +0100
committerMichael Williamson <mike@zwobble.org>2017-05-24 21:01:53 +0100
commit5049244505ad55659bf7480fd30cececb88f285d (patch)
treeae5b593342211e09ac09c27b36e3341d45481f9b
parent941d705b6c30f1e43889c4e62c0a747f7b6fe8ba (diff)
Add message to error
-rw-r--r--lib/document-to-html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index 852e0af..48a7e61 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -88,7 +88,7 @@ function DocumentConversion(options, comments) {
function elementToHtml(element, messages, options) {
if (!options) {
- throw new Error();
+ throw new Error("options not set");
}
var handler = elementConverters[element.type];
if (handler) {