Fixed code to collect info of each error, it collects loop info, global thread id, and bits fliped