svn_handle_error2

Function svn_handle_error2 

Source
pub unsafe extern "C" fn svn_handle_error2(
    error: *mut svn_error_t,
    stream: *mut FILE,
    fatal: svn_boolean_t,
    prefix: *const c_char,
)
Expand description

Very basic default error handler: print out error stack @a error to the stdio stream @a stream, with each error prefixed by @a prefix; quit and clear @a error iff the @a fatal flag is set. Allocations are performed in the @a error’s pool.

If you’re not sure what prefix to pass, just pass “svn: “. That’s what code that used to call svn_handle_error() and now calls svn_handle_error2() does.

Note that this should only be used from commandline specific code, or code that knows that @a stream is really where the application wants to receive its errors on.

@since New in 1.2.