aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2013-01-12 16:20:31 -0600
committerBrandon Mathis <brandon@imathis.com>2013-01-12 16:21:22 -0600
commitd774630d3eb77a1efa7eb6636b147b9b4cc97028 (patch)
treea7cbdfab95f9171089c2cdf3707763fbfe21884b /plugins
parent745e8f77bb3104fca1ae4510f019923228e54e05 (diff)
downloadmy_new_personal_website-d774630d3eb77a1efa7eb6636b147b9b4cc97028.tar.xz
my_new_personal_website-d774630d3eb77a1efa7eb6636b147b9b4cc97028.zip
Improved error message for category_generator plugin. Addresses #116
Diffstat (limited to '')
-rw-r--r--plugins/category_generator.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/category_generator.rb b/plugins/category_generator.rb
index 77e06afb..d4840a8d 100644
--- a/plugins/category_generator.rb
+++ b/plugins/category_generator.rb
@@ -111,7 +111,17 @@ module Jekyll
# 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