1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-31 09:57:58 +00:00
This commit is contained in:
Carles Fernandez
2019-03-03 11:57:15 +01:00

View File

@@ -2086,12 +2086,15 @@ bool Gnuplot::get_program_path()
{
s << path;
}
if (s.fail() or s.gcount() == 0)
if (s.fail())
{
throw GnuplotException("PATH is not set");
throw GnuplotException("PATH is not well defined");
}
std::string path_str;
if (s.gcount() > 0)
{
path_str = s.str();
}
std::string path_str = s.str();
std::list<std::string> ls;
//split path (one long string) into list ls of strings