mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
dxftoelmt: add Print standard error and filepath to the log file
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
#include <QProcess>
|
||||
#include <QMessageBox>
|
||||
#include <QDir>
|
||||
#include <iostream>
|
||||
#include <QDebug>
|
||||
|
||||
/**
|
||||
* @brief dxftoElmt
|
||||
@@ -43,12 +45,15 @@ QByteArray dxfToElmt(const QString &file_path)
|
||||
const QStringList arguments{file_path, QStringLiteral("-v")};
|
||||
|
||||
process_.start(program, arguments);
|
||||
|
||||
|
||||
if (process_.waitForFinished())
|
||||
{
|
||||
const auto byte_array{process_.readAll()};
|
||||
process_.close();
|
||||
return byte_array;
|
||||
qInfo()<<"\n Start converting DXF file..........\n"<< file_path;
|
||||
qInfo()<< process_.readAllStandardError(); //Print standard error to log file
|
||||
|
||||
const auto byte_array{process_.readAll()};
|
||||
process_.close();
|
||||
return byte_array;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user