Commit b57b6b2e authored by vfjpl's avatar vfjpl

return the error code from pacman

parent 9c9fba84
......@@ -2,6 +2,7 @@
* This file is part of Manjaro Settings Manager.
*
* Ramon Buldó <ramon@manjaro.org>
* Kacper Piwiński
*
* Manjaro Settings Manager is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -42,7 +43,7 @@ KernelAuthHelper::runPacman( const QVariantMap& args )
pacman->start( "/usr/bin/pacman", args["arguments"].toStringList() );
actionReply = ActionReply::SuccessType;
connect( pacman, &QProcess::readyRead,
[=] ()
[&] ()
{
QString data = QString::fromUtf8( pacman->readAllStandardOutput() ).trimmed();
QString dataErr = QString::fromUtf8( pacman->readAllStandardError() ).trimmed();
......@@ -60,6 +61,7 @@ KernelAuthHelper::runPacman( const QVariantMap& args )
} );
pacman->waitForStarted();
pacman->waitForFinished( -1 );
actionReply.setError( pacman->exitCode() );
return actionReply;
}
......
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