writing error steam data to console