tsuru / mysqlapi

MySQL service API for tsuru PaaS.
BSD 3-Clause "New" or "Revised" License
14 stars 18 forks source link

should return friendly error if appname is missing or empty #1

Closed fsouza closed 12 years ago

fsouza commented 12 years ago

Samples:

Missing the variable appname:

% curl -d "xyku=chico" http://myapi.net/resources/
...
MultiValueDictKeyError at /resources/
Key "appname" not found in QueryDict
...

With empty appname:

% curl -d "appname=" http://myapi.net/resources/
...
DatabaseError at /resources/
(1064, 'You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near "default character set utf8
default collate utf8_general_ci" at line 1'
...