Better error message than 'bad symbolic reference'.

Let's not scare people, and try to give them some advice.

PS: we should really come up with a better mechanism for testing errors/warnings
Merge pull request #3894 from adriaanm/depmsg

Better error message than 'bad symbolic reference'.