From a5acf2d3939fe1a27b158b91b300dc9bdb9d78ed Mon Sep 17 00:00:00 2001 From: Gerardo Tauriello <gerardo.tauriello@unibas.ch> Date: Tue, 14 May 2019 14:53:33 +0200 Subject: [PATCH] Fix exception message. --- modules/seq/alg/src/merge_pairwise_alignments.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/seq/alg/src/merge_pairwise_alignments.cc b/modules/seq/alg/src/merge_pairwise_alignments.cc index c522869cf..aa90c1359 100644 --- a/modules/seq/alg/src/merge_pairwise_alignments.cc +++ b/modules/seq/alg/src/merge_pairwise_alignments.cc @@ -143,11 +143,11 @@ AlignmentHandle MergePairwiseAlignments(const AlignmentList& pairwise_alns, AlignmentHandle ali_handle=*i; ConstSequenceHandle seq_handle=ali_handle.GetSequence(0); if (seq_handle.GetOffset()!=ref_offset) { - String error_string; - std::ostringstream error_ss(error_string); - error_ss << "The offset of the first sequence in alignment " << alignment_counter << - "is not identical to the offset of the reference sequence." << std::endl; - throw IntegrityError(error_string); + std::ostringstream error_ss; + error_ss << "The offset of the first sequence in alignment " + << alignment_counter + << " is not identical to the offset of the reference sequence."; + throw IntegrityError(error_ss.str()); } alignment_counter+=1; } -- GitLab