How to exit UVM TB based on Design Display statement

In reply to Shipra_s:

Why is there a $display in design code? That’s certainly not synthesizable. Can you get them to change the $display into a macro that you can redefine to call uvm_pkg::uvm_report_error for your purposes?