diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-08-28 20:06:48 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-08-28 20:06:48 +0100 |
| commit | 174dc90dc6e13cc3e5a3a89d08f7e651541a9056 (patch) | |
| tree | 09b6306b7f7e705bf66816201d8763cfce129a54 /README.md | |
| parent | d333cee1c7a7f95cadf5b59e8dbb0124d73852df (diff) | |
Include error on the error message, rather than just the stack
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)`. |
