diff --git a/lib/evaluateSnippets.js b/lib/evaluateSnippets.js index 8ee3863..4b004b2 100644 --- a/lib/evaluateSnippets.js +++ b/lib/evaluateSnippets.js @@ -113,16 +113,7 @@ module.exports = async function(snippets, options) { ); } - try { - await promise; - } catch (e) { - snippet.htmlErrorMessage = getErrorMessage( - global.expect, - 'html', - e - ); - snippet.errorMessage = getErrorMessage(global.expect, 'text', e); - } + await promise; } else { vm.runInThisContext( hasBabel ? snippet.code : transpile(snippet.code)