Forráskód Böngészése

exception message for missing Https support
closes #8955, closes #8956

Aleksandr Kuzmenko 5 éve
szülő
commit
ef42d00029
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      std/sys/Http.hx

+ 3 - 1
std/sys/Http.hx

@@ -106,8 +106,10 @@ class Http extends haxe.http.HttpBase {
 				sock = new python.net.SslSocket();
 				#elseif (!no_ssl && (hxssl || hl || cpp || (neko && !(macro || interp))))
 				sock = new sys.ssl.Socket();
-				#else
+				#elseif (neko || cpp)
 				throw "Https is only supported with -lib hxssl";
+				#else
+				throw "Https support in haxe.Http is not implemented for this target";
 				#end
 			} else {
 				sock = new Socket();