Skip to content
Snippets Groups Projects
Commit 715e424f authored by Jan Möbius's avatar Jan Möbius
Browse files

Exit OpenFlipper on python script error in batch mode

parent d6def081
No related branches found
No related tags found
1 merge request!138Introduce python tests
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment