better warning messages (bug 978204)
Merge pull request #22 from andymckay/978204

better warning messages (bug 978204)