return detail on error