ParserFile: shorter error message due to context

This commit is contained in:
Olle Jonsson 2016-03-19 16:17:10 +01:00
parent 1a289c872d
commit 7c2b95d24b

View File

@ -44,7 +44,7 @@ module GitHubChangelogGenerator
option_name, value = extract_pair(line)
@options[option_key_for(option_name)] = convert_value(value, option_name)
rescue
raise ParserError, "Config file parsing failed on line ##{line_number}: \"#{line.gsub(/[\n\r]+/, '')}\""
raise ParserError, "Failed on line ##{line_number}: \"#{line.gsub(/[\n\r]+/, '')}\""
end
# Returns a the option name as a symbol and its string value sans newlines.