Explorar o código

error message with complete path.

Nicolas Cannasse %!s(int64=19) %!d(string=hai) anos
pai
achega
70308f9b69
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/haxe/remoting/SocketConnection.hx

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

@@ -172,7 +172,7 @@ class SocketConnection extends AsyncConnection {
 			#end
 			#end
 			var fptr = Reflect.field(obj,fname);
 			var fptr = Reflect.field(obj,fname);
 			if( !Reflect.isFunction(fptr) )
 			if( !Reflect.isFunction(fptr) )
-				throw "Calling not-a-function '"+fname+"'";
+				throw "Calling not-a-function '"+path.join(".")+"."+fname+"'";
 			val = Reflect.callMethod(obj,fptr,args);
 			val = Reflect.callMethod(obj,fptr,args);
 		} catch( e : Dynamic ) {
 		} catch( e : Dynamic ) {
 			val = e;
 			val = e;