diff --git a/src/h5_zmq_writer.cpp b/src/h5_zmq_writer.cpp index 74e6c0d..76006ea 100644 --- a/src/h5_zmq_writer.cpp +++ b/src/h5_zmq_writer.cpp @@ -66,8 +66,8 @@ void write_h5(WriterManager *manager, RingBuffer *ring_buffer, string output_fil // Even if we can't write the format, lets try to preserve the data. try { H5Format::write_format(writer.get_h5_file(), parameters, get_frames_dataset_name()); - } catch (const runtime_error& exception) { - cerr << "[h5_zmq_writer::write] Error while trying to write file format: "<< ex.what() << endl + } catch (const runtime_error& ex) { + cerr << "[h5_zmq_writer::write] Error while trying to write file format: "<< ex.what() << endl; } } }