From a1dcc532eaa26f0565930283a39d526690d78ccf Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Wed, 25 May 2022 16:03:33 +0900 Subject: [PATCH] Friendly error messages --- lib/youplot/command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/youplot/command.rb b/lib/youplot/command.rb index d91c178..9141ab2 100644 --- a/lib/youplot/command.rb +++ b/lib/youplot/command.rb @@ -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