|
|
@@ -63,7 +63,12 @@ if($action) {
|
|
|
$conflicting_tests = Test::query(["location_id" => $location_ids, "project_id" => $target_project_id, "status" => Constraint::notEquals(Test::STATUS_CANCELLED)]);
|
|
|
$conflicting_test_count = count($conflicting_tests);
|
|
|
if($conflicting_test_count > 0) {
|
|
|
- throw new RuntimeException(__("%d conflicting test(s) for a location was found in the target project. Please remove from the target project and try again.", $conflicting_test_count));
|
|
|
+ $location_names = [];
|
|
|
+ foreach($conflicting_tests as $conflicting_test) {
|
|
|
+ $location_names[] = $conflicting_test->getLocation()->name;
|
|
|
+ }
|
|
|
+
|
|
|
+ throw new RuntimeException(__("%d conflicting test(s) were found in the target project. Locations: %s", $conflicting_test_count, implode(", ", $location_names)));
|
|
|
}
|
|
|
|
|
|
// OK at this point
|