From 174dc90dc6e13cc3e5a3a89d08f7e651541a9056 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Aug 2016 20:06:48 +0100 Subject: Include error on the error message, rather than just the stack --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4f310a0..ccbd35f 100644 --- a/README.md +++ b/README.md @@ -437,10 +437,13 @@ mammoth.embedStyleMap({path: sourcePath}, "p[style-name='Section Title'] => h1:f Each message has the following properties: -* `type`: a string representing the type of the message, such as `"warning"` +* `type`: a string representing the type of the message, such as `"warning"` or + `"error"` * `message`: a string containing the actual message +* `error` (optional): the thrown exception that caused this message, if any + #### Image converters An image converter can be created by calling `mammoth.images.imgElement(func)`. -- cgit v1.2.3