Skip to content
Snippets Groups Projects
Commit 7586a732 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

EventFormatMetaDataTool: Fix usage of StatusCode

REPORT_MESSAGE expects a StatusCode as argument and not a message level.
parent 326a7245
No related branches found
No related tags found
No related merge requests found
......@@ -69,8 +69,9 @@ namespace xAODMaker {
StatusCode EventFormatMetaDataTool::beginInputFile()
{
if( collectMetaData().isFailure() ) {
REPORT_ERROR( MSG::FATAL )
StatusCode sc = collectMetaData();
if( sc.isFailure() ) {
REPORT_ERROR( sc )
<< "Failed to collect metadata from the input file";
throw std::runtime_error( "Failed to collect trigger configuration "
"metadata from the input" );
......@@ -87,8 +88,9 @@ namespace xAODMaker {
StatusCode EventFormatMetaDataTool::metaDataStop()
{
if( writeMetaData().isFailure() ) {
REPORT_ERROR( MSG::FATAL )
StatusCode sc = writeMetaData();
if( sc.isFailure() ) {
REPORT_ERROR( sc )
<< "Failed to write metadata to the output store";
throw std::runtime_error( "Failed write xAOD::EventFormat "
"to the output" );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment