query() will now display additional error messages