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

Incorrect error format #127

Closed
cheungpat opened this issue Nov 16, 2016 · 0 comments
Closed

Incorrect error format #127

cheungpat opened this issue Nov 16, 2016 · 0 comments
Assignees
Labels

Comments

@cheungpat
Copy link
Contributor

cheungpat commented Nov 16, 2016

If an error occurred with js cloud code, the skygear-node returns an error like this:

{"error":"error message"}

skygear-server expects the data in common.ExecError format:

{"error":{"name":"<error type>","code":10000,"message":"<error message>"}}

referencing issue at SkygearIO/skygear-server#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants