Commit 715e424f authored by Jan Möbius's avatar Jan Möbius

Exit OpenFlipper on python script error in batch mode

parent d6def081
......@@ -329,6 +329,10 @@ void PythonInterpreter::pyOutput(const char* w)
void PythonInterpreter::pyError(const char* w)
{
if (externalLogging_) {
if (OpenFlipper::Options::nogui()) {
std::cerr << "Python Error! " << w << std::endl;
exit(1);
}
emit log(LOGERR, QString(w));
} else {
LogErr += QString::fromUtf8(w);
......
Markdown is supported
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