Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved error message for category_generator plugin. Addresses #116

  • Loading branch information...
commit d774630d3eb77a1efa7eb6636b147b9b4cc97028 1 parent 745e8f7
@imathis authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.