The error doesn't throw the URL. Is there a better way to handle this?