diff options
author | Thomas Habets <thomas@habets.se> | 2019-12-21 19:38:44 +0000 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-01 19:40:43 -0800 |
commit | 183a35ee554fd2034acbc5ac91e32abd046d5de1 (patch) | |
tree | eb77ac056d06a81c2a9e2c9f7b4901cac63077d3 /gr-blocks/lib/file_meta_source_impl.cc | |
parent | 24725470892c770b8f0cd5f839588a8a5125caa6 (diff) |
Remove newlines from exception messages
Diffstat (limited to 'gr-blocks/lib/file_meta_source_impl.cc')
-rw-r--r-- | gr-blocks/lib/file_meta_source_impl.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gr-blocks/lib/file_meta_source_impl.cc b/gr-blocks/lib/file_meta_source_impl.cc index 557abee7cc..6637420981 100644 --- a/gr-blocks/lib/file_meta_source_impl.cc +++ b/gr-blocks/lib/file_meta_source_impl.cc @@ -87,7 +87,7 @@ file_meta_source_impl::file_meta_source_impl(const std::string& filename, d_state = STATE_INLINE; if (!open(filename, hdr_filename)) - throw std::runtime_error("file_meta_source: can't open file\n"); + throw std::runtime_error("file_meta_source: can't open file"); do_update(); @@ -96,7 +96,7 @@ file_meta_source_impl::file_meta_source_impl(const std::string& filename, parse_header(hdr, 0, d_tags); parse_extras(extras, 0, d_tags); } else - throw std::runtime_error("file_meta_source: could not read header.\n"); + throw std::runtime_error("file_meta_source: could not read header."); // Set output signature based on itemsize info in header set_output_signature(io_signature::make(1, 1, d_itemsize)); @@ -193,7 +193,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, t.srcid = alias_pmt(); tags.push_back(t); } else { - throw std::runtime_error("file_meta_source: Could not extract sample rate.\n"); + throw std::runtime_error("file_meta_source: Could not extract sample rate."); } // GET TIME STAMP @@ -208,7 +208,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, t.srcid = alias_pmt(); tags.push_back(t); } else { - throw std::runtime_error("file_meta_source: Could not extract time stamp.\n"); + throw std::runtime_error("file_meta_source: Could not extract time stamp."); } // GET ITEM SIZE OF DATA @@ -216,7 +216,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, d_itemsize = pmt::to_long(pmt::dict_ref(hdr, pmt::string_to_symbol("size"), pmt::PMT_NIL)); } else { - throw std::runtime_error("file_meta_source: Could not extract item size.\n"); + throw std::runtime_error("file_meta_source: Could not extract item size."); } // GET SEGMENT SIZE @@ -227,7 +227,7 @@ void file_meta_source_impl::parse_header(pmt::pmt_t hdr, // Convert from bytes to items d_seg_size /= d_itemsize; } else { - throw std::runtime_error("file_meta_source: Could not extract segment size.\n"); + throw std::runtime_error("file_meta_source: Could not extract segment size."); } } |