mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 08:11:58 +00:00
Add error messages for failed submodule lookup
This commit is contained in:
parent
46779411f9
commit
155ee75114
@ -128,6 +128,10 @@ int git_submodule_lookup(
|
|||||||
git_buf_free(&path);
|
git_buf_free(&path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
giterr_set(GITERR_SUBMODULE, (error == GIT_ENOTFOUND) ?
|
||||||
|
"No submodule named '%s'" :
|
||||||
|
"Submodule '%s' has not been added yet", name);
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user