Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 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