Wouldn't return errors from pre_commit correctly