Check for errors in user query.