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

Method formatInsertError

src/pass.cpp:648–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646}
647
648auto 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected