add_script returns a more useful error with the filename that is missing.