better warning messages (bug 978204)