aboutsummaryrefslogtreecommitdiffstats
path: root/guides/Rakefile
diff options
context:
space:
mode:
authorŁukasz Adamczak <lukasz@czak.pl>2014-04-03 20:05:51 +0200
committerŁukasz Adamczak <lukasz@czak.pl>2014-04-03 21:31:27 +0200
commit251840f20adca3b727a3c3a659a5ce9db47ff260 (patch)
treeef5b812da782b9e4f07773acb2a5d2e8d374a568 /guides/Rakefile
parent7e6630329ec071d921b831f379364329ff6916e0 (diff)
downloadrails-251840f20adca3b727a3c3a659a5ce9db47ff260.tar.gz
rails-251840f20adca3b727a3c3a659a5ce9db47ff260.tar.bz2
rails-251840f20adca3b727a3c3a659a5ce9db47ff260.zip
Improve error message for guides:generate:kindle
With `kindlegen` missing from the PATH, the task keeps suggesting to `gem install kindlerb`. This change provides a more meaningful error message for guides:generate:kindle.
Diffstat (limited to 'guides/Rakefile')
-rw-r--r--guides/Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/Rakefile b/guides/Rakefile
index d6dd950d01..94d4be8c0a 100644
--- a/guides/Rakefile
+++ b/guides/Rakefile
@@ -13,8 +13,8 @@ namespace :guides do
desc "Generate .mobi file. The kindlegen executable must be in your PATH. You can get it for free from http://www.amazon.com/kindlepublishing"
task :kindle do
- unless `kindlerb -v 2> /dev/null` =~ /kindlerb 0.1.1/
- abort "Please `gem install kindlerb`"
+ unless `kindlerb -v 2> /dev/null` =~ /kindlerb 0.1.1/
+ abort "Please `gem install kindlerb` and make sure you have `kindlegen` in your PATH"
end
unless `convert` =~ /convert/
abort "Please install ImageMagick`"