From 96485a4966db056c0d1b214d19ebcd461a189a36 Mon Sep 17 00:00:00 2001 From: owenpearson Date: Wed, 13 Mar 2024 17:44:38 +0000 Subject: [PATCH] build: catch esbuild errors for web builds --- Gruntfile.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 41d2f8738..a19bc21ea 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -112,10 +112,14 @@ module.exports = function (grunt) { esbuild.build(esbuildConfig.webConfig), esbuild.build(esbuildConfig.minifiedWebConfig), esbuild.build(esbuildConfig.modularConfig), - ]).then(() => { - console.log('esbuild succeeded'); - done(true); - }); + ]) + .then(() => { + console.log('esbuild succeeded'); + done(true); + }) + .catch((err) => { + done(err); + }); }); grunt.registerTask('test:webserver', 'Launch the Mocha test web server on http://localhost:3000/', [