Better error message when incorrect # of dependencies provided