summaryrefslogtreecommitdiff
path: root/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'times.cc')
-rw-r--r--times.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/times.cc b/times.cc
index be1b10f1..772158fb 100644
--- a/times.cc
+++ b/times.cc
@@ -192,7 +192,7 @@ namespace {
struct std::tm when;
if (! parse_date_mask(word.c_str(), &when))
- throw new datetime_error(string("Could not parse date mask: ") + word);
+ throw_(datetime_error, "Could not parse date mask: " << word);
when.tm_hour = 0;
when.tm_min = 0;