Code now sends url error message to stderr (instead of stdout).