Better error messages when search or query fails.