| 646 | } |
| 647 | |
| 648 | auto Pass::formatInsertError(const QString &friendly, const QString &err) |
| 649 | -> QString { |
| 650 | QStringList humanLines; |
| 651 | for (const QString &line : err.split('\n')) { |
| 652 | QString cleanedLine = line; |
| 653 | cleanedLine.remove('\r'); |
| 654 | if (!cleanedLine.startsWith(QLatin1String("[GNUPG:]"))) |
| 655 | humanLines.append(cleanedLine); |
| 656 | } |
| 657 | const QString humanErr = humanLines.join('\n').trimmed(); |
| 658 | return humanErr.isEmpty() ? friendly : friendly + "\n\n" + humanErr; |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * @brief Emit the appropriate finished signal for a completed subprocess. |
nothing calls this directly
no outgoing calls
no test coverage detected