print correct warning message