report error if failed to set permission on scripts, update #2001