CommandLineInterface: Rename m_error to m_outputFailed

This commit is contained in:
Kamil Śliwak
2021-10-12 18:23:16 +02:00
parent 59d8f50518
commit a5ed732fd3
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -553,7 +553,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da
if (fs::exists(pathName) && !m_options.output.overwriteFiles)
{
serr() << "Refusing to overwrite existing file \"" << pathName << "\" (use --overwrite to force)." << endl;
m_error = true;
m_outputFailed = true;
return;
}
ofstream outFile(pathName);
@@ -561,7 +561,7 @@ void CommandLineInterface::createFile(string const& _fileName, string const& _da
if (!outFile)
{
serr() << "Could not write to file \"" << pathName << "\"." << endl;
m_error = true;
m_outputFailed = true;
return;
}
}
@@ -855,7 +855,7 @@ bool CommandLineInterface::actOnInput()
solAssert(m_options.input.mode == InputMode::Compiler || m_options.input.mode == InputMode::CompilerWithASTImport, "");
outputCompilationResults();
}
return !m_error;
return !m_outputFailed;
}
bool CommandLineInterface::link()