Ah, then I'd argue that this need to change to have as an additional argument a message. This way the check on line 83 can invoke the error and specify that the url is too long, but the new handler (for the script tag) could be authored to invoke the error state with a different message (one provided by the browser or something? not sure what that new error state provides).