improve error handling where posts cannot be created