Skip to content

Commit 766b4dd

Browse files
committed
https: correct some error messages
1 parent d3ef11e commit 766b4dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/settings.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int git_libgit2_opts(int key, ...)
176176
error = git_openssl__set_cert_location(file, path);
177177
}
178178
#else
179-
giterr_set(GITERR_NET, "cannot set certificate locations: OpenSSL is not enabled");
179+
giterr_set(GITERR_SSL, "TLS backend doesn't support certificate locations");
180180
error = -1;
181181
#endif
182182
break;
@@ -209,7 +209,7 @@ int git_libgit2_opts(int key, ...)
209209
}
210210
}
211211
#else
212-
giterr_set(GITERR_NET, "cannot set custom ciphers: OpenSSL is not enabled");
212+
giterr_set(GITERR_SSL, "TLS backend doesn't support custom ciphers");
213213
error = -1;
214214
#endif
215215
break;

0 commit comments

Comments
 (0)