Explorar o código

BUG: Fixed issue of writing Python errors to stdout instead of stderr

Andras Lasso %!s(int64=10) %!d(string=hai) anos
pai
achega
00deca112c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/Scripting/Python/Core/ctkAbstractPythonManager.cpp

+ 1 - 1
Libs/Scripting/Python/Core/ctkAbstractPythonManager.cpp

@@ -424,5 +424,5 @@ void ctkAbstractPythonManager::printStdout(const QString& text)
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 void ctkAbstractPythonManager::printStderr(const QString& text)
 void ctkAbstractPythonManager::printStderr(const QString& text)
 {
 {
-  std::cout << qPrintable(text);
+  std::cerr << qPrintable(text);
 }
 }