Add diagnostic message.