remove any YP error message after logging it

If something like 'success' was returned initially, any subsequent failure would
still have that message, indicating the wrong thing.