lib/cri/parser.rb in cri-2.15.10 vs lib/cri/parser.rb in cri-2.15.11

- old
+ new

@@ -12,15 +12,13 @@ class IllegalOptionValueError < Cri::Error attr_reader :definition attr_reader :value def initialize(definition, value) - @definition = definition - @value = value - end + super("invalid value #{value.inspect} for #{definition.formatted_name} option") - def message - "invalid value #{value.inspect} for #{@definition.formatted_name} option" + @value = value + @definition = definition end end # Error that will be raised when an option without argument is # encountered.