websocket error now uses printRecord