Refactor dependency-edit-validation and address #472
Refactor dependency-edit-validation and address #472

The previous exception for `base` wasn't working properly anyway.

This refactoring also makes the error message more verbose in case of
rejections.

agrafix/hackage-server,edsko/hackage-server,edsko/hackage-server,agrafix/hackage-server