From 1ffb8ead95ce1d3c5225bf47bf2169638a8282ef Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Sun, 17 Jan 2016 17:38:55 +0100 Subject: [PATCH] Fix various typos in error messages --- dune/istl/matrixmarket.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/istl/matrixmarket.hh b/dune/istl/matrixmarket.hh index 228b28d0..233f0257 100644 --- a/dune/istl/matrixmarket.hh +++ b/dune/istl/matrixmarket.hh @@ -765,7 +765,7 @@ namespace Dune std::size_t size=rows/entries; if(size*entries!=rows) - DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct1"); + DUNE_THROW(MatrixMarketFormatError, "Block size of vector is not correct!"); vector.resize(size); @@ -1045,7 +1045,7 @@ namespace Dune std::ifstream file; file.open(rfilename.str().c_str(), std::ios::in); if(!file) - DUNE_THROW(IOError, "Could not open file" << rfilename.str().c_str()); + DUNE_THROW(IOError, "Could not open file: " << rfilename.str().c_str()); //if(!file.is_open()) // readMatrixMarket(matrix,file); @@ -1082,7 +1082,7 @@ namespace Dune std::string s; file>>s; if(s!="neighbours:") - DUNE_THROW(MatrixMarketFormatError, "was exspecting the string: \"neighbours:\""); + DUNE_THROW(MatrixMarketFormatError, "was expecting the string: \"neighbours:\""); std::set<int> nb; while(!file.eof()) { int i; @@ -1114,7 +1114,7 @@ namespace Dune std::ifstream file; file.open(filename.c_str(), std::ios::in); if(!file) - DUNE_THROW(IOError, "Could not open file" << filename); + DUNE_THROW(IOError, "Could not open file: " << filename); readMatrixMarket(matrix,file); file.close(); } -- GitLab