From 94ba4850d53b2293960aa5314faa1b5c1201ab8d Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Fri, 19 Jan 2024 16:03:38 +0900 Subject: [PATCH] Do not include a backtick in error messages and backtraces [Feature #16495] --- lib/time.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/time.rb b/lib/time.rb index 2bfbd57..970932a 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -455,7 +455,7 @@ def parse(date, now=self.now) # def strptime(date, format, now=self.now) d = Date._strptime(date, format) - raise ArgumentError, "invalid date or strptime format - `#{date}' `#{format}'" unless d + raise ArgumentError, "invalid date or strptime format - '#{date}' '#{format}'" unless d if seconds = d[:seconds] if sec_fraction = d[:sec_fraction] usec = sec_fraction * 1000000