浏览代码

onError throw by default.

Nicolas Cannasse 19 年之前
父节点
当前提交
108dec90ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/remoting/AsyncConnection.hx

+ 1 - 1
std/haxe/remoting/AsyncConnection.hx

@@ -34,7 +34,7 @@ class AsyncConnection implements Dynamic<AsyncConnection> {
 	function new( data : Dynamic, path ) {
 		__data = data;
 		__path = path;
-		__error = { ref : function(e) { } };
+		__error = { ref : function(e) { throw e; } };
 	}
 
 	function __resolve(field) {