Friendly error messages

This commit is contained in:
kojix2 2022-05-25 16:03:33 +09:00
parent 523700348c
commit a1dcc532ea

View File

@ -135,7 +135,8 @@ module YouPlot
rescue CSV::MalformedCSVError => e
warn 'Failed to parse the text. '
warn 'Please try to set the correct character encoding with --encoding option.'
raise e
warn e.backtrace.grep(/youplot/).first
exit 1
end
data