From c9edd2a2c9208d7f7426017fb9af53a90b34aff1 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 19 Nov 2025 16:00:52 -0500 Subject: [PATCH] Warn users when failing to require preboot --- lib/preboot/require.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/preboot/require.js b/lib/preboot/require.js index 15823a5..0f87353 100644 --- a/lib/preboot/require.js +++ b/lib/preboot/require.js @@ -19,6 +19,8 @@ module.exports = function (opts) { bootable = require(fullpath); } catch (ex) { // probably we want to throw an error here and halt the application? debug('warning Could not load preboot for %s', fullpath, ex.stack); + console.warn('Could not load preboot for %s', fullpath, ex.stack); + console.warn('Application startup will continue...'); return callback(); } bootable(app, options, callback);