[BUG #6296] fixing element-wise printing of exception