git_error_set_str

Set the error message string for this thread. This function is like git_error_set but takes a static string instead of a printf-style format.

extern (C) nothrow @nogc public
int
git_error_set_str
(,
const(char)* string_
)

Parameters

error_class int

One of the git_error_t enum above describing the general subsystem that is responsible for the error.

string_ const(char)*

The error message to keep

Return Value

Type: int

0 on success or -1 on failure

Meta