| 619 | } |
| 620 | |
| 621 | void 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 | |
| 639 | void Pass::handleGrepError(int exitCode, const QString &err) { |
| 640 | if (exitCode == 1) { |
nothing calls this directly
no test coverage detected