[fix] emit an error if proper URL is not passed in as a target