Raise a nice error message if a dependency does not exist.