refine errdup output.