libgit2

git_strerror

Version:

strerror() for the Git library

Get a string description for a given error code. NOTE: This method will be eventually deprecated in favor of the new git_lasterror.

Signature

const char *git_strerror(int num);

Parameters

int
In
num

The error code to explain

Returns

const char *

a string explaining the error code

Versions