Minor improvement to actions.sync(), renamed errors to error.