path: don't let direach overwrite the callback's error message
path: don't let direach overwrite the callback's error message

This function deals with functions doing IO which means the amount of
errors that can happen is quit large. It does not help if it always
ovewrites the underlying error message with a less understandable
version of "something went wrong".

Instead, only use this generic message if there was no error set by the
callback.

jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb,jflesch/libgit2-mariadb