Explorar o código

* Extend error message SErrInvokeArgInvalidType

Michaël Van Canneyt hai 7 meses
pai
achega
8834c109fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -1388,7 +1388,7 @@ resourcestring
   SErrInvokeRecCreateSelf     = 'The record constructor can only take an empty value, a record or a pointer: %s';
   SErrInvokeRecCreateSelf     = 'The record constructor can only take an empty value, a record or a pointer: %s';
   SErrInvokeInstCreateSelf    = 'The instance constructor can only accept a class, an instance of a class, or an empty value: %s';
   SErrInvokeInstCreateSelf    = 'The instance constructor can only accept a class, an instance of a class, or an empty value: %s';
   SErrInvokeArrayArgExpected  = 'Array argument expected for parameter %s of method %s';
   SErrInvokeArrayArgExpected  = 'Array argument expected for parameter %s of method %s';
-  SErrInvokeArgInvalidType    = 'Invalid type of argument for parameter %s of method %s';
+  SErrInvokeArgInvalidType    = 'Invalid type of argument for parameter %s of method %s: expected %s, but got %s';
   SErrInvokeArgCount          = 'Invalid argument count for method %s; expected %d, but got %d';
   SErrInvokeArgCount          = 'Invalid argument count for method %s; expected %d, but got %d';
   SErrInvokeNoCodeAddr        = 'Failed to determine code address for method: %s';
   SErrInvokeNoCodeAddr        = 'Failed to determine code address for method: %s';
   SErrInvokeRttiDataError     = 'The RTTI data is inconsistent for method: %s';
   SErrInvokeRttiDataError     = 'The RTTI data is inconsistent for method: %s';