mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 15:41:12 +08:00
Friendly error messages
This commit is contained in:
parent
fc0bb10329
commit
3b1c662e70
@ -153,7 +153,8 @@ module YouPlot
|
|||||||
rescue CSV::MalformedCSVError => e
|
rescue CSV::MalformedCSVError => e
|
||||||
warn 'Failed to parse the text. '
|
warn 'Failed to parse the text. '
|
||||||
warn 'Please try to set the correct character encoding with --encoding option.'
|
warn 'Please try to set the correct character encoding with --encoding option.'
|
||||||
raise e
|
warn e.backtrace.grep(/youplot/).first
|
||||||
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
data
|
data
|
||||||
|
Loading…
Reference in New Issue
Block a user