diff options
author | Andre Arko <andre@arko.net> | 2012-08-26 00:42:54 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2012-08-26 00:42:54 -0700 |
commit | b7f579429e3f2c8428795ea6f5f732fa5b6fbd40 (patch) | |
tree | 6a46bd5743a06d4717214fbccc3abbf13f923743 /lib/bundler/dsl.rb | |
parent | 92a9d2c6655e9c6f8a40c18a6a3bdc53d80db418 (diff) | |
download | bundler-b7f579429e3f2c8428795ea6f5f732fa5b6fbd40.tar.gz |
linebreaks for easier to read DSL errors
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r-- | lib/bundler/dsl.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index b3a88849..6924b7a8 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -80,9 +80,9 @@ module Bundler elsif dep.type == :development return else - raise DslError, "You cannot specify the same gem twice with different version requirements. " \ + raise DslError, "You cannot specify the same gem twice with different version requirements. \n" \ "You specified: #{current.name} (#{current.requirement}) and " \ - "#{dep.name} (#{dep.requirement})" + "#{dep.name} (#{dep.requirement})\n" end end @@ -92,9 +92,9 @@ module Bundler elsif dep.type == :development return else - raise DslError, "You cannot specify the same gem twice coming from different sources. You " \ - "specified that #{dep.name} (#{dep.requirement}) should come from " \ - "#{current.source || 'an unspecified source'} and #{dep.source}" + raise DslError, "You cannot specify the same gem twice coming from different sources.\n" \ + "You specified that #{dep.name} (#{dep.requirement}) should come from " \ + "#{current.source || 'an unspecified source'} and #{dep.source}\n" end end end |