Fixed the thing where giving bad params results in the wrong kind of error