Rescue more specific exceptions in recipe evaluator
This commit is contained in:
		| @@ -7,7 +7,7 @@ module Producer | |||||||
|             content = File.read(file_path) |             content = File.read(file_path) | ||||||
|             begin |             begin | ||||||
|               Recipe.new(env).tap { |o| o.instance_eval content, file_path } |               Recipe.new(env).tap { |o| o.instance_eval content, file_path } | ||||||
|             rescue Exception => e |             rescue ::StandardError, ::ScriptError => e | ||||||
|               raise RecipeEvaluationError, e.message, [ |               raise RecipeEvaluationError, e.message, [ | ||||||
|                 '%s (recipe)' % file_path, |                 '%s (recipe)' % file_path, | ||||||
|                 *e.backtrace |                 *e.backtrace | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user