updated prompt format on error