add a wait for an error message when you publish