diff options
Diffstat (limited to 'format.cc')
-rw-r--r-- | format.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -89,7 +89,7 @@ void format_t::parse(const string& fmt) if (current->max_width != -1 && current->min_width != -1 && current->max_width < current->min_width) - throw new format_error("Maximum width is less than the minimum width"); + throw_(format_exception, "Maximum width is less than the minimum width"); switch (*p) { case '|': @@ -111,7 +111,7 @@ void format_t::parse(const string& fmt) p++; } if (*p != close) - throw new format_error(string("Missing '") + close + "'"); + throw_(format_exception, "Missing '" << close << "'"); if (open == '{') { assert(! current->xpath); |