Skip to content

More functions need to set git_errno #9

Description

@dborowitz

There are several functions in libgit2, especially those that return pointers, that don't provide any information about errors. For example, git_repository_open returns NULL when a git directory is invalid, but also when out of memory.

It would be great if we could count on any function that can cause an error to set git_errno. For functions that also return an error code, it should be possible to write a macro to set and return git_errno in one statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions