Commit 219faa77 authored by Oleg Kuprash's avatar Oleg Kuprash Committed by Stewart Martin-Haugh
Browse files

Merge branch '21.0_throw_fatal_trigconfRW_abort' into '21.0'

TrigConfReadWrite application to return FATAL if metadata write fails (ATR-16103)

See merge request !1608
parent 8220354c
......@@ -678,10 +678,14 @@ int main( int argc, char* argv[] ) {
if(ctpc)
coolWriter->writeL1Payload(runNr, *ctpc);
if(hltFrame)
coolWriter->writeHLTPayload(runNr, *hltFrame, configSource);
try{
if(hltFrame)
coolWriter->writeHLTPayload(runNr, *hltFrame, configSource);
}
catch(cool::StorageTypeStringTooLong e){
log << "FATAL: Unable to write data to COOL";
exit(1);
}
if(mck)
coolWriter->writeMCKPayload(runNr, mck, release, info);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment