Produce more helpful output when module output is overwritten (#716)

Fix a bug where overwriting `output` causes a PklBugException.

This now produces a more helpful message pointing to the actual problem.

Co-authored-by: translatenix <119817707+translatenix@users.noreply.github.com>
This commit is contained in:
Josh B
2024-10-24 09:41:59 -07:00
committed by GitHub
parent cbbcca0d84
commit 4b6bc7bb7c
9 changed files with 64 additions and 7 deletions

View File

@@ -833,8 +833,8 @@ A type union cannot have more than one default type.
notAUnion=\
Only type unions can have a default marker (*).
invalidModuleOutputValue=\
Expected `output.value` of module `{2}` to be of type `{0}`, but got type `{1}`.
invalidModuleOutput=\
Expected `{0}` of module `{3}` to be of type `{1}`, but got type `{2}`.
cannotResolveDependencyWithoutHierarchicalUris=\
Cannot import dependency because project URI `{0}` does not have a hierarchical path.