Add colour to error messages. Extract the printer visitor.