Improve a warning.

Fixes #2195.