Abort journal parsing if Control-C is caught

This commit is contained in:
John Wiegley 2009-02-16 04:16:20 -04:00
parent 4365d9e3fc
commit 1aff6ec01d

View file

@ -236,6 +236,9 @@ void instance_t::parse()
add_error_context("While parsing file "
<< file_context(pathname, linenum));
if (caught_signal != NONE_CAUGHT)
throw;
string context = error_context();
if (! context.empty())
std::cerr << context << std::endl;