浏览代码

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

Aleksandr Kuzmenko 5 年之前
父节点
当前提交
ef42d00029
共有 1 个文件被更改,包括 3 次插入1 次删除
  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();