Skip to content

Commit

Permalink
Merge pull request #43 from Informatievlaanderen/SDTT-268-Add-better-…
Browse files Browse the repository at this point in the history
…logging-for-missing-packages

Update log messages about packages
  • Loading branch information
ddvlanck authored Feb 9, 2024
2 parents 49192f4 + 995b778 commit d44130f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class AttributeConverterHandler extends ConverterHandler<EaAttribute> {

if (!packageObjects) {
throw new Error(
`[AttributeConverterHandler]: Package tag was defined, but unable to find a related package object for attribute (${attribute.path}).`,
`[AttributeConverterHandler]: Package tag was defined (${packageTagValue}), but unable to find a related package object for attribute (${attribute.path}).`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class ConnectorConverterHandler extends ConverterHandler<NormalizedConnec

if (!packageObject) {
throw new Error(
`[ConnectorConverterHandler]: Unable to find package for name "${packageTagValue}".`,
`[ConnectorConverterHandler]: Package tag (${packageTagValue}) was set for connector ${connector.path}, but could not find the package object.`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ElementConverterHandler extends ConverterHandler<EaElement> {

if (!referencedPackages) {
throw new Error(
`[ElementConverterHandler]: Package tag was defined, but unable to find the object for package ${packageTagValue}.`,
`[ElementConverterHandler]: Package tag was defined for element ${element.path}, but unable to find the object for package ${packageTagValue}.`,
);
}

Expand Down

0 comments on commit d44130f

Please sign in to comment.