If you get this error and the terminal is not descriptive enough to help you, Heroku might be able to tell you what is wrong through their website. Try the following:
log in to Heroku and go to your dashboard;
select the problem application from the list; and,
check the build logs under the "Activity" tab.
In my case, I had accidentally ignored my Gemfile.lock.