Răsfoiți Sursa

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

Aleksandr Kuzmenko 5 ani în urmă
părinte
comite
ef42d00029
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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();
 				sock = new python.net.SslSocket();
 				#elseif (!no_ssl && (hxssl || hl || cpp || (neko && !(macro || interp))))
 				#elseif (!no_ssl && (hxssl || hl || cpp || (neko && !(macro || interp))))
 				sock = new sys.ssl.Socket();
 				sock = new sys.ssl.Socket();
-				#else
+				#elseif (neko || cpp)
 				throw "Https is only supported with -lib hxssl";
 				throw "Https is only supported with -lib hxssl";
+				#else
+				throw "Https support in haxe.Http is not implemented for this target";
 				#end
 				#end
 			} else {
 			} else {
 				sock = new Socket();
 				sock = new Socket();