diff --git a/app/main-window.cpp b/app/main-window.cpp index 45f0752..9ce5def 100644 --- a/app/main-window.cpp +++ b/app/main-window.cpp @@ -1642,12 +1642,25 @@ void MainWindow::onCoreUpdateCheckFinished(bool hasUpdate, const QString& latest } // Called when the background git pull + build finishes. A success hands over to -// the freshly installed binary right away; a failure is reported in a dialog. +// the freshly installed binary right away; a failure is reported in a dialog and +// kept whole in the journal. void MainWindow::onCoreSelfUpdateFinished(bool success, const QString& message) { if (!success) { + // A failing build prints far more than a dialog can hold, and the part + // that gets cut is precisely the error line. The journal keeps the whole + // output as a command block, so the Logs screen shows it and the file can + // be sent as it is — without it, a failed update leaves no trace at all + // (the outcome is not a provider command, so nothing else records it). + LogManager& journal = LogManager::instance(); + journal.beginCommand(QStringLiteral("maj-app"), + QStringLiteral("mise à jour de l'application")); + journal.endCommand(false, message); + qCWarning(pacmgrUpdate) << "self-update failed, output in" << journal.filePath(); + QMessageBox::warning(this, tr("Échec de la mise à jour"), - QString(tr("
La mise à jour a échoué :
%1")) - .arg(message.toHtmlEscaped())); + QString(tr("
La mise à jour a échoué :
%1" + "
Le journal complet est dans %2.
Gestionnaire de paquets pour Arch Linux (pacman).
": "Paketverwaltung für Arch Linux (pacman).
", "La nouvelle version sera active au prochain démarrage.
%1": "
Die neue Version ist beim nächsten Start aktiv.
%1", "
Vous utilisez actuellement la version %2.
": "Du verwendest derzeit Version %2.
", - "La mise à jour a échoué :
%1": "
Die Aktualisierung ist fehlgeschlagen:
%1", + "
La mise à jour a échoué :
%1
Le journal complet est dans %2.
Die Aktualisierung ist fehlgeschlagen:
%1
Das vollständige Protokoll liegt in %2.
Gestionnaire de paquets pour Arch Linux (pacman).
": "Package manager for Arch Linux (pacman).
", "La nouvelle version sera active au prochain démarrage.
%1": "
The new version will be active on the next start.
%1", "
Vous utilisez actuellement la version %2.
": "You are currently running version %2.
", - "La mise à jour a échoué :
%1": "
The update failed:
%1", + "
La mise à jour a échoué :
%1
Le journal complet est dans %2.
The update failed:
%1
The full log is in %2.
Gestionnaire de paquets pour Arch Linux (pacman).
": "Gestor de paquetes para Arch Linux (pacman).
", "La nouvelle version sera active au prochain démarrage.
%1": "
La nueva versión estará activa en el próximo inicio.
%1", "
Vous utilisez actuellement la version %2.
": "Actualmente usas la versión %2.
", - "La mise à jour a échoué :
%1": "
La actualización ha fallado:
%1", + "
La mise à jour a échoué :
%1
Le journal complet est dans %2.
La actualización ha fallado:
%1
El registro completo está en %2.
Gestionnaire de paquets pour Arch Linux (pacman).
": "Gestore di pacchetti per Arch Linux (pacman).
", "La nouvelle version sera active au prochain démarrage.
%1": "
La nuova versione sarà attiva al prossimo avvio.
%1", "
Vous utilisez actuellement la version %2.
": "Al momento usi la versione %2.
", - "La mise à jour a échoué :
%1": "
L'aggiornamento non è riuscito:
%1", + "
La mise à jour a échoué :
%1
Le journal complet est dans %2.
L'aggiornamento non è riuscito:
%1
Il registro completo è in %2.