Skip to content

Commit

Permalink
Merge pull request #97 from gjtorikian/parse-properly
Browse files Browse the repository at this point in the history
Indicte the context of an option
  • Loading branch information
gjtorikian authored Apr 3, 2019
2 parents ae64cf4 + 02b98e2 commit d267090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commonmarker/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.process_options(option, type)
# neckbearding around. the map will both check the opts and then bitwise-OR it
option.map { |o| check_option(o, type); type.to_h[o] }.inject(0, :|)
else
raise TypeError, 'option type must be a valid symbol or array of symbols'
raise TypeError, "option type must be a valid symbol or array of symbols within the #{type} context"
end
end

Expand Down

0 comments on commit d267090

Please sign in to comment.