solc: Fixes double-quoting path names on stderr and adds tests for it.

Before it was possible to get a failure message, such as:

    ""notfound.sol"" is not found

whereas it should be:

    "notfound.sol" is not found.
This commit is contained in:
Christian Parpart
2018-08-07 14:55:22 +02:00
parent d33e5683f5
commit 39ffd7500e
2 changed files with 54 additions and 4 deletions
+4 -4
View File
@@ -416,11 +416,11 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
{
if (!ignoreMissing)
{
cerr << "\"" << infile << "\" is not found" << endl;
cerr << infile << " is not found." << endl;
return false;
}
else
cerr << "\"" << infile << "\" is not found. Skipping." << endl;
cerr << infile << " is not found. Skipping." << endl;
continue;
}
@@ -429,11 +429,11 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
{
if (!ignoreMissing)
{
cerr << "\"" << infile << "\" is not a valid file" << endl;
cerr << infile << " is not a valid file." << endl;
return false;
}
else
cerr << "\"" << infile << "\" is not a valid file. Skipping." << endl;
cerr << infile << " is not a valid file. Skipping." << endl;
continue;
}