Abort journal parsing if Control-C is caught
This commit is contained in:
parent
4365d9e3fc
commit
1aff6ec01d
1 changed files with 3 additions and 0 deletions
|
|
@ -236,6 +236,9 @@ void instance_t::parse()
|
||||||
add_error_context("While parsing file "
|
add_error_context("While parsing file "
|
||||||
<< file_context(pathname, linenum));
|
<< file_context(pathname, linenum));
|
||||||
|
|
||||||
|
if (caught_signal != NONE_CAUGHT)
|
||||||
|
throw;
|
||||||
|
|
||||||
string context = error_context();
|
string context = error_context();
|
||||||
if (! context.empty())
|
if (! context.empty())
|
||||||
std::cerr << context << std::endl;
|
std::cerr << context << std::endl;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue