lib/eco/api/usecases/use_case.rb in eco-helpers-0.7.2 vs lib/eco/api/usecases/use_case.rb in eco-helpers-0.8.1
- old
+ new
@@ -23,10 +23,10 @@
TYPE_PARAMS[type]
end
end
def initialize(name, type:, root:, options: {}, &block)
- raise "Undefine usecase type #{type}. Please, use any of #{TYPES}" unless self.class.valid_type?(type)
+ raise "Undefined usecase type #{type}, when creating '#{name}'. Please, use any of #{TYPES}" unless self.class.valid_type?(type)
self.root = root
@case = block
@name = name
@type = type