Corrected error handling in postSendAction