Skip to content

Commit

Permalink
fix(debug): explicitly log introspection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed May 26, 2024
1 parent d01dc15 commit b468f95
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ export const extractDomainObjectMetadatasFromConfigCriteria = async ({
exclude: string[] | null;
}) => {
// grab the metadata of the domain objects specified in those search paths
const metadatas = introspect(searchPaths);
const metadatas = (() => {
try {
return introspect(searchPaths);
} catch (error) {
console.error(error);
throw error;
}
})();

// if "include" is specified, include only the ones that are explicitly defined in the list; DEFAULT = all of them
const metadatasAfterInclusion = include
Expand Down

0 comments on commit b468f95

Please sign in to comment.