WSL/SLF GitLab Repository

Commit 8bc969e1 authored by Nander Wever's avatar Nander Wever
Browse files

Correcting a rather persistent (and irritating) typo.

parent 82fbd7ce
......@@ -182,7 +182,7 @@ void ARCIO::read2DGrid_internal(Grid2DObject& grid_out, const std::string& full_
fin.open (full_name.c_str(), ifstream::in);
if (fin.fail()) {
ostringstream ss;
ss << "Error openning file \"" << full_name << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << full_name << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......@@ -335,7 +335,7 @@ void ARCIO::write2DGrid(const Grid2DObject& grid_in, const std::string& name)
fout.open(full_name.c_str());
if (fout.fail()) {
ostringstream ss;
ss << "Error openning file \"" << full_name << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << full_name << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......
......@@ -431,7 +431,7 @@ void GRIBIO::read2DGrid(Grid2DObject& grid_out, const std::string& i_name)
fp = fopen(filename.c_str(),"r");
if(fp==NULL) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......@@ -458,7 +458,7 @@ void GRIBIO::indexFile(const std::string& filename)
fp = fopen(filename.c_str(),"r");
if(fp==NULL) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......
......@@ -114,7 +114,7 @@ void PGMIO::read2DGrid_internal(Grid2DObject& grid_out, const std::string& full_
fin.open (full_name.c_str(), ifstream::in);
if (fin.fail()) {
ostringstream ss;
ss << "Error openning file \"" << full_name << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << full_name << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......@@ -249,7 +249,7 @@ void PGMIO::write2DGrid(const Grid2DObject& grid_in, const std::string& name)
fout.open(full_name.c_str());
if (fout.fail()) {
ostringstream ss;
ss << "Error openning file \"" << full_name << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << full_name << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......
......@@ -320,7 +320,7 @@ void PNGIO::setFile(const std::string& filename, png_structp& png_ptr, png_infop
fp = fopen(filename.c_str(), "wb");
if (fp == NULL) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\", possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\", possible reason: " << strerror(errno);
throw FileAccessException(ss.str(), AT);
}
......
......@@ -420,7 +420,7 @@ void SMETWriter::write(const std::vector<std::string>& vec_timestamp, const std:
fout.open(filename.c_str(), ios::binary);
if (fout.fail()) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\" for writing, possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\" for writing, possible reason: " << strerror(errno);
throw SMETException(ss.str(), SMET_AT);
}
......@@ -466,7 +466,7 @@ void SMETWriter::write(const std::vector<double>& data)
fout.open(filename.c_str(), ios::binary);
if (fout.fail()) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\" for writing, possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\" for writing, possible reason: " << strerror(errno);
throw SMETException(ss.str(), SMET_AT);
}
......@@ -663,7 +663,7 @@ SMETReader::SMETReader(const std::string& in_fname)
fin.open (filename.c_str(), ios::in|ios::binary); //ascii does end of line translation, which messes up the pointer code
if (fin.fail()) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
ss << " Please check file existence and permissions!";
throw SMETException(ss.str(), SMET_AT);
}
......@@ -968,7 +968,7 @@ void SMETReader::read(std::vector<std::string>& vec_timestamp, std::vector<doubl
fin.open (filename.c_str(), ios::in|ios::binary); //ascii mode messes up pointer code on windows (automatic eol translation)
if (fin.fail()) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
throw SMETException(ss.str(), SMET_AT);
}
......@@ -1019,7 +1019,7 @@ void SMETReader::read(std::vector<double>& vec_data)
fin.open (filename.c_str(), mode);
if (fin.fail()) {
ostringstream ss;
ss << "Error openning file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
ss << "Error opening file \"" << filename << "\" for reading, possible reason: " << strerror(errno);
throw SMETException(ss.str(), SMET_AT);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment