added statement if error detail not exists