diff --git a/lib/producer/core/recipe/file_evaluator.rb b/lib/producer/core/recipe/file_evaluator.rb index be102e1..e598dae 100644 --- a/lib/producer/core/recipe/file_evaluator.rb +++ b/lib/producer/core/recipe/file_evaluator.rb @@ -7,7 +7,7 @@ module Producer content = File.read(file_path) begin Recipe.new(env).tap { |o| o.instance_eval content, file_path } - rescue Exception => e + rescue ::StandardError, ::ScriptError => e raise RecipeEvaluationError, e.message, [ '%s (recipe)' % file_path, *e.backtrace