aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/dsl.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-08-26 00:42:54 -0700
committerAndre Arko <andre@arko.net>2012-08-26 00:42:54 -0700
commitb7f579429e3f2c8428795ea6f5f732fa5b6fbd40 (patch)
tree6a46bd5743a06d4717214fbccc3abbf13f923743 /lib/bundler/dsl.rb
parent92a9d2c6655e9c6f8a40c18a6a3bdc53d80db418 (diff)
downloadbundler-b7f579429e3f2c8428795ea6f5f732fa5b6fbd40.tar.gz
linebreaks for easier to read DSL errors
Diffstat (limited to 'lib/bundler/dsl.rb')
-rw-r--r--lib/bundler/dsl.rb10
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