From d774630d3eb77a1efa7eb6636b147b9b4cc97028 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 12 Jan 2013 16:20:31 -0600 Subject: Improved error message for category_generator plugin. Addresses #116 --- plugins/category_generator.rb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1