diff options
author | Andre Arko <andre@arko.net> | 2015-02-13 22:40:56 +1100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-02-13 22:41:09 +1100 |
commit | 52660ae35b728b419e8cb4ea6fa8b4595cf21969 (patch) | |
tree | e54ded4369bfb612edf613023077c3fdaf7e6e93 | |
parent | 7d21606e462521ba099f0d08f043c57d97bd7296 (diff) | |
download | bundler-52660ae35b728b419e8cb4ea6fa8b4595cf21969.tar.gz |
pretty error when lockfiles are not parseable
-rw-r--r-- | lib/bundler/lockfile_parser.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/lockfile_parser.rb b/lib/bundler/lockfile_parser.rb index 07eb676661..1ced10ac33 100644 --- a/lib/bundler/lockfile_parser.rb +++ b/lib/bundler/lockfile_parser.rb @@ -47,6 +47,10 @@ module Bundler end @sources << @rubygems_aggregate @specs = @specs.values + rescue ArgumentError => e + Bundler.ui.debug(e) + raise LockfileError, "Your lockfile is unreadable. Run `rm Gemfile.lock` " \ + "and then `bundle install` to generate a new lockfile." end private |