From 4747cd95c1d465fdca7dc6c583f708373f6ee327 Mon Sep 17 00:00:00 2001 From: ccocchi Date: Fri, 4 May 2012 15:21:06 +0200 Subject: [PATCH] Better error explanation --- lib/rabl-rails/renderers/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rabl-rails/renderers/base.rb b/lib/rabl-rails/renderers/base.rb index 7027620..6eebe49 100644 --- a/lib/rabl-rails/renderers/base.rb +++ b/lib/rabl-rails/renderers/base.rb @@ -81,7 +81,7 @@ module RablRails # rendering time. # def partial(template_path, options = {}) - raise PartialError.new("No object was given to partial") unless options[:object] + raise PartialError.new("No object was given to partial #{template_path}") unless options[:object] object = options[:object] return [] if object.respond_to?(:empty?) && object.empty?