format message.
fix bug: disconnected error message disappears.