From d1e586bd401a6d83ecabafb3b833a5ae65b6e05f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 25 Mar 2023 15:00:01 -0300 Subject: data steps: more "quick" functions & basic snapshot test demo --- src/content-function.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/content-function.js') diff --git a/src/content-function.js b/src/content-function.js index dbac691b..0a217800 100644 --- a/src/content-function.js +++ b/src/content-function.js @@ -383,6 +383,7 @@ export function quickEvaluate({ // provided as part of allContentDependencies or allExtraDependencies. // Catch and report these early, together in an aggregate error. const unfulfilledErrors = []; + const unfulfilledNames = []; for (const name of neededContentDependencyNames) { const contentFunction = fulfilledContentDependencies[name]; if (!contentFunction) continue; @@ -392,12 +393,13 @@ export function quickEvaluate({ } catch (error) { error.message = `(${name}) ${error.message}`; unfulfilledErrors.push(error); + unfulfilledNames.push(name); } } } if (!empty(unfulfilledErrors)) { - throw new AggregateError(unfulfilledErrors, `Content functions unfulfilled`); + throw new AggregateError(unfulfilledErrors, `Content functions unfulfilled (${unfulfilledNames.join(', ')})`); } const slotResults = {}; -- cgit 1.3.0-6-gf8a5