mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-16 16:18:11 +08:00
Friendly error messages
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user