From 02b0d3233c69a72373693b1d8d3dc401d43dea1c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 26 Sep 2019 22:03:39 +0200 Subject: [PATCH] Prevent the conversion-process from failing silently This commit fixes #42 --- MarkdownConverter/src/Conversion/Converter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MarkdownConverter/src/Conversion/Converter.ts b/MarkdownConverter/src/Conversion/Converter.ts index d98baf00..7758cc25 100644 --- a/MarkdownConverter/src/Conversion/Converter.ts +++ b/MarkdownConverter/src/Conversion/Converter.ts @@ -298,6 +298,7 @@ export class Converter default: try { + let body = await this.Document.Render(); let page = await this.Browser.newPage(); progressReporter.report( @@ -313,7 +314,7 @@ export class Converter { await request.respond( { - body: await this.Document.Render() + body }); } else