diff options
author | Vicent Marti <vicent@github.com> | 2014-06-03 17:25:59 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-06-03 17:25:59 +0200 |
commit | bccb36ebf9d950f7562153d9e9ef9a3678e72516 (patch) | |
tree | 64bc8a0eeb726efa0aed6f468d5020db0785e293 /src | |
parent | eb27d29676a607e7864350732d7cfc9991740ca1 (diff) | |
parent | d723dbed0c46ddb2fb037c63cc13a6131c3824b8 (diff) | |
download | libgit2-bccb36ebf9d950f7562153d9e9ef9a3678e72516.tar.gz |
Merge pull request #2389 from arthurschreiber/arthur/set-error-when-no-remote-found
Remote: Set an error when a remote cannot be found.
Diffstat (limited to 'src')
-rw-r--r-- | src/remote.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index b56bf3b24..0c82433d1 100644 --- a/src/remote.c +++ b/src/remote.c @@ -403,6 +403,7 @@ int git_remote_load(git_remote **out, git_repository *repo, const char *name) if (!optional_setting_found) { error = GIT_ENOTFOUND; + giterr_set(GITERR_CONFIG, "Remote '%s' does not exist.", name); goto cleanup; } |