Skip to content

Conversation

@DrPaulSharp
Copy link
Collaborator

Closes #145

RATapi/inputs.py Outdated
)
if resolution.source == "" and resolution.type != TypeOptions.Data:
raise ValueError(
f"All constant and function resolutions must have a source defined. For a "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no function resolution so maybe we should leave that out of the error message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for that!

@DrPaulSharp DrPaulSharp merged commit 4c1acd4 into RascalSoftware:main Apr 29, 2025
7 checks passed
@DrPaulSharp DrPaulSharp deleted the more_error branch April 29, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing background/resolution with empty source assigned gives unhelpful error

2 participants