Added a to_s method to errors.