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

Request for better error messages/check action's structure #10

Open
tendermario opened this issue Oct 3, 2018 · 0 comments
Open

Request for better error messages/check action's structure #10

tendermario opened this issue Oct 3, 2018 · 0 comments

Comments

@tendermario
Copy link

Hello! I was puzzled for a while because I formatted my action poorly like so:

{
type: "ADD_GROUP_TO_PROJECT",
payload: {
  projectId: "24763583",
  id: "2476358367294e4"
}

I didn't have the closing curly brace.

However the error message returned was "Unexpected token )" which confused me for an embarassingly long time before I managed to figure this out.

I just thought it would be a good idea to add something make sure the structure is valid, as I believe this error message is from accepting the action 'as is' and then bumping into some other code where it errors out.

Thanks!

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

No branches or pull requests

1 participant