Better warning message.
Merge pull request #1706 from nouiz/warn_msg

Better warning message.