Better warning message: link to the documentation.

Closes #1549.