modify to post error when error is occured after eos