@@ -521,7 +521,11 @@ private function findAndReplaceReferences($objectHandler, $inputString)
521
521
} elseif (get_class ($ obj ) == SectionObject::class) {
522
522
list (,$ objField ) = $ this ->stripAndSplitReference ($ match );
523
523
if ($ obj ->getElement ($ objField ) == null ) {
524
- throw new TestReferenceException ("Could not resolve entity reference " , ["input " => $ inputString ]);
524
+ throw new TestReferenceException (
525
+ "Could not resolve entity reference \"{$ inputString }\" "
526
+ . "in Action with stepKey \"{$ this ->getStepKey ()}\"" ,
527
+ ["input " => $ inputString , "stepKey " => $ this ->getStepKey ()]
528
+ );
525
529
}
526
530
$ parameterized = $ obj ->getElement ($ objField )->isParameterized ();
527
531
$ replacement = $ obj ->getElement ($ objField )->getPrioritizedSelector ();
@@ -538,7 +542,11 @@ private function findAndReplaceReferences($objectHandler, $inputString)
538
542
if (get_class ($ objectHandler ) != DataObjectHandler::class) {
539
543
return $ this ->findAndReplaceReferences (DataObjectHandler::getInstance (), $ outputString );
540
544
} else {
541
- throw new TestReferenceException ("Could not resolve entity reference " , ["input " => $ inputString ]);
545
+ throw new TestReferenceException (
546
+ "Could not resolve entity reference \"{$ inputString }\" "
547
+ . "in Action with stepKey \"{$ this ->getStepKey ()}\"" ,
548
+ ["input " => $ inputString , "stepKey " => $ this ->getStepKey ()]
549
+ );
542
550
}
543
551
}
544
552
0 commit comments