Wrap exception in pre tag