Skip to content
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

feat: encoder runtime arguments check #1246

Merged
merged 6 commits into from
Jul 31, 2023
Merged

Conversation

benesjan
Copy link
Contributor

Description

Fixes #1227

Checklist:

  • I have reviewed my diff in github, line by line.
  • Every change is related to the PR description.
  • I have linked this pull request to the issue(s) that it resolves.
  • There are no unexpected formatting changes, superfluous debug logs, or commented-out code.
  • The branch has been merged or rebased against the head of its merge target.
  • I'm happy for the PR to be merged at the reviewer's next convenience.

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for preeminent-bienenstitch-606ad0 canceled.

Name Link
🔨 Latest commit 72140db
🔍 Latest deploy log https://app.netlify.com/sites/preeminent-bienenstitch-606ad0/deploys/64c28885c4182a0007016af5

@benesjan benesjan marked this pull request as draft July 27, 2023 15:08
@ludamad
Copy link
Collaborator

ludamad commented Jul 27, 2023

Hopefully your next commit avoids the spot instance issues

@benesjan benesjan force-pushed the janb/encoder-inputs-check branch 2 times, most recently from e87754c to bd63152 Compare July 31, 2023 09:42
@benesjan benesjan marked this pull request as ready for review July 31, 2023 09:45
@benesjan benesjan enabled auto-merge (squash) July 31, 2023 09:56
this.flattened.push(arg);
} else {
throw new Error('Object cannot be serialized to a field and is not a field.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I would just print 'Argument cannot be serialised to a field'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 25d1ad1

@benesjan benesjan merged commit 407b8b5 into master Jul 31, 2023
@benesjan benesjan deleted the janb/encoder-inputs-check branch July 31, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add runtime check of input's validity to encoder
3 participants