Index: generic/nsf.c =================================================================== diff -u -r2d3e0da7e6a7d8f9811ad22598fde7ede516e010 -r67401de3f9bcd5d59c54133756398953d369fcca --- generic/nsf.c (.../nsf.c) (revision 2d3e0da7e6a7d8f9811ad22598fde7ede516e010) +++ generic/nsf.c (.../nsf.c) (revision 67401de3f9bcd5d59c54133756398953d369fcca) @@ -26060,7 +26060,7 @@ NULL, NULL, &defObject, NULL, &fromClassNS); if (unlikely(cmd == NULL)) { - return NsfPrintError(interp, "cannot lookup %s method '%s' for %s", + return NsfPrintError(interp, "cannot lookup %smethod '%s' for %s", cl == NULL ? "object " : "", ObjStr(methodObj), ObjectName_(object)); } @@ -26146,7 +26146,7 @@ Tcl_SetObjResult(interp, Tcl_NewIntObj(0)); return TCL_OK; } else { - return NsfPrintError(interp, "cannot lookup %s method '%s' for %s", + return NsfPrintError(interp, "cannot lookup %smethod '%s' for %s", cl == NULL ? "object " : "", ObjStr(methodObj), ObjectName_(object)); } Index: tests/nsf-cmd.test =================================================================== diff -u -re367957430bf9246069791785619a5503e166d33 -r67401de3f9bcd5d59c54133756398953d369fcca --- tests/nsf-cmd.test (.../nsf-cmd.test) (revision e367957430bf9246069791785619a5503e166d33) +++ tests/nsf-cmd.test (.../nsf-cmd.test) (revision 67401de3f9bcd5d59c54133756398953d369fcca) @@ -277,6 +277,26 @@ } +nx::test case nsf-method-property { + ? {::nsf::object::exists ::TestMe} 0 + ? {::nsf::method::property ::TestMe missing call-protected true} \ + {expected object but got "::TestMe" for parameter "object"} + ? {::nsf::method::forward::property ::TestMe missing verbose true} \ + {expected object but got "::TestMe" for parameter "object"} + + nx::Class create ::TestMe + + ? {::nsf::method::property ::TestMe -per-object missing call-protected true} \ + {cannot lookup object method 'missing' for ::TestMe} + ? {::nsf::method::property ::TestMe missing call-protected true} \ + {cannot lookup method 'missing' for ::TestMe} + ? {::nsf::method::forward::property ::TestMe -per-object missing verbose true} \ + {cannot lookup object method 'missing' for ::TestMe} + ? {::nsf::method::forward::property ::TestMe missing verbose true} \ + {cannot lookup method 'missing' for ::TestMe} + +} + # # test error transparency of "-debug" option #