Browse files

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.
  • Loading branch information...
czak committed Apr 3, 2014
1 parent 7e66303 commit 251840f20adca3b727a3c3a659a5ce9db47ff260
Showing with 2 additions and 2 deletions.
  1. +2 −2 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"
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"
unless `convert` =~ /convert/
abort "Please install ImageMagick`"

0 comments on commit 251840f

Please sign in to comment.