Skip to content

Commit

Permalink
fix: actually exit build when Twig render fails
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely authored Apr 21, 2020
1 parent a2062dd commit 5d28a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/engine-twig-php/lib/engine_twig_php.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ const engine_twig_php = {
if (results.ok) {
resolve(results.html + details);
} else {
reject(results.message);
console.log(results.message);
process.exit(1);
}
})
.catch(error => {
Expand Down

0 comments on commit 5d28a24

Please sign in to comment.