Skip to content

Use eval.InvalidArgError() to dsl.Payload() #3689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

tchssk
Copy link
Member

@tchssk tchssk commented Apr 1, 2025

Related to #3536

@tchssk tchssk marked this pull request as ready for review April 1, 2025 14:47
@tchssk tchssk requested a review from Copilot April 1, 2025 14:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the DSL error reporting for Payload by replacing eval.ReportError with eval.InvalidArgError.

  • Adds test cases to validate error messages for Payload and Payload (args).
  • Modifies error handling in dsl/payload.go to provide clearer, standardized error messages.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eval/eval_test.go Adds test cases for Payload invalid argument error handling
dsl/payload.go Replaces eval.ReportError with eval.InvalidArgError for Payload calls

@raphael
Copy link
Member

raphael commented Apr 1, 2025

Thank you!

@raphael raphael merged commit 18d5007 into goadesign:v3 Apr 1, 2025
13 checks passed
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.

2 participants