Use correct formatter type in warning message.