Skip to content
Browse files

Improved error message for category_generator plugin. Addresses #116

  • Loading branch information...
1 parent 745e8f7 commit d774630d3eb77a1efa7eb6636b147b9b4cc97028 @imathis committed
Showing with 11 additions and 1 deletion.
  1. +11 −1 plugins/category_generator.rb
View
12 plugins/category_generator.rb
@@ -111,7 +111,17 @@ def write_category_indexes
# Throw an exception if the layout couldn't be found.
else
- throw "No 'category_index' layout found."
+ raise <<-ERR
+
+
+===============================================
+ Error for category_generator.rb plugin
+-----------------------------------------------
+ No 'category_index.hmtl' in source/_layouts/
+ Perhaps you haven't installed a theme yet.
+===============================================
+
+ERR
end
end

0 comments on commit d774630

Please sign in to comment.
Something went wrong with that request. Please try again.