Better error explanation

This commit is contained in:
ccocchi 2012-05-04 15:21:06 +02:00
parent 961c6ac533
commit 4747cd95c1
1 changed files with 1 additions and 1 deletions

View File

@ -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?