add error() method, the opposite of ready()