Commit 766b4ddbbdc0b4c1b928f2db209cc41d91d698b1

Etienne Samson 2017-07-02T16:11:13

https: correct some error messages

diff --git a/src/settings.c b/src/settings.c
index 99d8b9d..2a52ffb 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -176,7 +176,7 @@ int git_libgit2_opts(int key, ...)
 			error = git_openssl__set_cert_location(file, path);
 		}
 #else
-		giterr_set(GITERR_NET, "cannot set certificate locations: OpenSSL is not enabled");
+		giterr_set(GITERR_SSL, "TLS backend doesn't support certificate locations");
 		error = -1;
 #endif
 		break;
@@ -209,7 +209,7 @@ int git_libgit2_opts(int key, ...)
 			}
 		}
 #else
-		giterr_set(GITERR_NET, "cannot set custom ciphers: OpenSSL is not enabled");
+		giterr_set(GITERR_SSL, "TLS backend doesn't support custom ciphers");
 		error = -1;
 #endif
 		break;