From e32d9e64a768f276e04fe79c14f1b28d88bd4185 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 8 Mar 2006 18:24:56 +0000 Subject: Added much better error location. --- datetime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'datetime.cc') diff --git a/datetime.cc b/datetime.cc index f5d071c3..74efce89 100644 --- a/datetime.cc +++ b/datetime.cc @@ -107,7 +107,7 @@ static void parse_inclusion_specifier(const std::string& word, struct std::tm when; if (! parse_date_mask(word.c_str(), &when)) - throw datetime_error(std::string("Could not parse date mask: ") + word); + throw new datetime_error(std::string("Could not parse date mask: ") + word); when.tm_hour = 0; when.tm_min = 0; -- cgit v1.2.3