From f484ae5c0ebfc8d8d7154a5bc97daa860fe7f359 Mon Sep 17 00:00:00 2001 From: rofe Date: Thu, 21 Feb 2019 16:04:53 +0100 Subject: [PATCH] display more useful output on errors #187 --- src/html/set-status.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/html/set-status.js b/src/html/set-status.js index 05d48128f..390c69d01 100644 --- a/src/html/set-status.js +++ b/src/html/set-status.js @@ -22,7 +22,10 @@ function setStatus({ response = {}, error }, { logger }) { return { response: { status: 500, - body: '', + headers: { + 'Content-Type': 'text/html', + }, + body: `

500

${error}

`, }, }; }