From 3b1c662e704d847a2440b65ae46e892935a85bf9 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 4ec0ca2..9e3b3f7 100644 --- a/lib/youplot/command.rb +++ b/lib/youplot/command.rb @@ -153,7 +153,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