trapping per-post errors