add --set=\"ON_ERROR_STOP=1\" to psql execution