From 5049244505ad55659bf7480fd30cececb88f285d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 24 May 2017 21:01:53 +0100 Subject: Add message to error --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) { -- cgit v1.2.3