MCPcopy Create free account
hub / github.com/IJHack/QtPass / handleProcessError

Method handleProcessError

src/pass.cpp:621–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void Pass::handleProcessError(PROCESS pid, int exitCode, const QString &out,
622 const QString &err) {
623 if (pid == PASS_GREP) {
624 handleGrepError(exitCode, err);
625 return;
626 }
627
628 if (pid == PASS_INSERT) {
629 const QString friendly = gpgErrorMessage(err);
630 if (!friendly.isEmpty()) {
631 emit processErrorExit(exitCode, formatInsertError(friendly, err));
632 return;
633 }
634 }
635
636 emit processErrorExit(exitCode, err);
637}
638
639void Pass::handleGrepError(int exitCode, const QString &err) {
640 if (exitCode == 1) {

Callers

nothing calls this directly

Calls 1

gpgErrorMessageFunction · 0.85

Tested by

no test coverage detected