When the pattern failed a report with the cycle number. This cycle number give you the position in scan chain. Then you know which flow failed.
And the tool vendor like Mentor, as a diagnostic tool, where you could provide the log file from certain tester and then it directly analyze that and indicate the source of the issue.