lib/rabbit/task/slide.rb in rabbit-2.1.1 vs lib/rabbit/task/slide.rb in rabbit-2.1.2

- old
+ new

@@ -65,10 +65,11 @@ spec.description = readme_parser.description || "TODO" spec.licenses = @slide.licenses slide_conf_path = @slide.path spec.files = [".rabbit", slide_conf_path, "Rakefile"] + spec.files += Dir.glob("theme.rb") spec.files += Dir.glob("{COPYING,GPL,README*}") spec.files += Dir.glob("rabbit/**/*.*") spec.files += Dir.glob("**/*.{svg,png,jpg,jpeg,gif,eps,pdf}") spec.files += Dir.glob("*.{rd,rab,hiki,md,pdf}") spec.files -= Dir.glob("{pkg,pdf}/**/*.*") @@ -230,10 +231,14 @@ rubygems_user = @slide.author.rubygems_user "http://slide.rabbit-shocker.org/authors/#{rubygems_user}/#{@slide.id}/" end def rabbit(*arguments) - Rabbit::Command::Rabbit.run(*arguments) + unless Rabbit::Command::Rabbit.run(*arguments) + message = "failed to run Rabbit" + message << ": #{arguments.join(', ')}" unless arguments.empty? + raise message + end end end end end