Browse Source

onError throw by default.

Nicolas Cannasse 19 years ago
parent
commit
108dec90ed
1 changed files with 1 additions and 1 deletions
  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) {