improve publish when request failed

also display exception type before the exception text, useful for e.G.
KeyErrors