update script now used the print-and-exit-on-error function