Fix construction of two new qsprintf() exceptions
Summary: Ref T13222. Ref T13217. These exception signatures aren't quite right, they should take $query as the first parameter.
Test Plan: Misused %P. Before: error about exception construction. After: useful exception.
Reviewers: amckinley
Reviewed By: amckinley
Maniphest Tasks: T13222, T13217
Differential Revision: https://secure.phabricator.com/D19882