Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
715e424f
Commit
715e424f
authored
Mar 07, 2019
by
Jan Möbius
Browse files
Exit OpenFlipper on python script error in batch mode
parent
d6def081
Changes
1
Hide whitespace changes
Inline
Side-by-side
PythonInterpreter/PythonInterpreter.cc
View file @
715e424f
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment