Correct.  My thoughts were that if something that IS our fault were to trigger an error, it would happen first, before the query is added, and it would fall through to the second clause, notifying us of the error.  There is still the possibility that the error was caused by the introduction of the query parameter.