From ea971431bb08641e26c399edd1bc74b838931b02 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 5 Nov 2023 18:26:20 -0400 Subject: upd8: nicer uncaught error-with-cause logging --- src/upd8.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/upd8.js b/src/upd8.js index 1524787..7cb4202 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1428,6 +1428,9 @@ if (true || isMain(import.meta.url) || path.basename(process.argv[1]) === 'hsmus } catch (error) { if (error instanceof AggregateError) { showAggregate(error); + } else if (error.cause) { + console.error(error); + showAggregate(error); } else { console.error(error); } -- cgit 1.3.0-6-gf8a5