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

Improve input validation #8

Open
rexxars opened this issue Jan 13, 2016 · 0 comments
Open

Improve input validation #8

rexxars opened this issue Jan 13, 2016 · 0 comments

Comments

@rexxars
Copy link
Member

rexxars commented Jan 13, 2016

If the received file field does not have the expected value, instead of giving a meaningful error, it responds with:

{
  "percent": 100,
  "status": "failed",
  "message": "can't convert Symbol into Integer"
}

Info:

#<TypeError: can't convert Symbol into Integer>
  /srv/tiramisu/current/api/v1/images.rb:56:in `[]'
  /srv/tiramisu/current/api/v1/images.rb:56:in `block (2 levels) in <class:TiramisuV1>'
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