diff options
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 |
commit | 251840f20adca3b727a3c3a659a5ce9db47ff260 (patch) | |
tree | ef5b812da782b9e4f07773acb2a5d2e8d374a568 /guides/Rakefile | |
parent | 7e6630329ec071d921b831f379364329ff6916e0 (diff) | |
download | rails-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/Rakefile | 4 |
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`" |