catch post errors