Skip to content

Commit a1dcc53

Browse files
committed
Friendly error messages
1 parent 5237003 commit a1dcc53

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/youplot/command.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def parse_dsv(input)
135135
rescue CSV::MalformedCSVError => e
136136
warn 'Failed to parse the text. '
137137
warn 'Please try to set the correct character encoding with --encoding option.'
138-
raise e
138+
warn e.backtrace.grep(/youplot/).first
139+
exit 1
139140
end
140141

141142
data

0 commit comments

Comments
 (0)