Log url and xargs when a url error occurs

Allows for easier diagnosis of problem mentioned in #283