fix the logging of error on failure...(it wasn't logged)