Improve error message for overriden deps