Printing errors to stderr.
Updated message when the URL is invalid.