Skip to content

Commit

Permalink
Merge pull request #2205 from Inist-CNRS/1978-possiblité-dobtenir-des…
Browse files Browse the repository at this point in the history
…-messages-derreurs-dans-les-scripts-denrichissement

print error in preview lines
  • Loading branch information
touv authored Nov 7, 2024
2 parents e52f502 + f835215 commit b0fc8fe
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 46 deletions.
68 changes: 32 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@
"@draconides/format": "1.0.3",
"@emotion/react": "11.7.1",
"@emotion/styled": "11.6.0",
"@ezs/analytics": "2.3.2",
"@ezs/basics": "2.7.2",
"@ezs/conditor": "2.12.2",
"@ezs/core": "3.10.4",
"@ezs/istex": "1.5.9",
"@ezs/analytics": "2.3.3",
"@ezs/basics": "2.8.0",
"@ezs/conditor": "2.12.3",
"@ezs/core": "3.10.6",
"@ezs/istex": "1.5.10",
"@ezs/lodex": "file:./packages/ezsLodex",
"@ezs/sparql": "1.2.3",
"@ezs/storage": "3.2.3",
"@ezs/sparql": "1.2.4",
"@ezs/storage": "3.2.4",
"@ezs/transformers": "file:./packages/transformers",
"@ezs/xslt": "1.3.31",
"@ezs/xslt": "1.3.32",
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"@fortawesome/react-fontawesome": "^0.1.18",
Expand Down
4 changes: 2 additions & 2 deletions src/api/services/enrichment/enrichment.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const getEnrichmentDataPreview = async (ctx) => {
} catch (error) {
const logger = getLogger(ctx.tenant);
logger.error(`Error while processing enrichment preview`, error);
return [];
return [`Execution Error: ${error?.sourceError?.message}` ];
}
return result;
};
Expand Down Expand Up @@ -216,7 +216,7 @@ const processEzsEnrichment = (entries, commands, ctx, preview = false) => {
}
return values.push({
id: sourceChunk?.id,
error: error?.sourceError?.message,
value: error?.message,
});
} else {
return values.push(data);
Expand Down

0 comments on commit b0fc8fe

Please sign in to comment.