Improve error message when js artifact injection is not successful