summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 97c80e4f..2f09c063 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1746,7 +1746,7 @@ std::size_t journal_t::read_textual(parse_context_stack_t& context_stack)
TRACE_FINISH(parsing_total, 1);
if (context_stack.get_current().errors > 0)
- throw static_cast<int>(context_stack.get_current().errors);
+ throw error_count(context_stack.get_current().errors);
return context_stack.get_current().count;
}