From f7fdf3bb928e3c8550e790d71d4c7a2fdbe79af1 Mon Sep 17 00:00:00 2001 From: Adam Szmigin Date: Wed, 31 Jul 2024 00:22:45 +0100 Subject: [PATCH] Friendlier error message if Engine export fails for track --- src/library/export/engineprimeexportjob.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/library/export/engineprimeexportjob.cpp b/src/library/export/engineprimeexportjob.cpp index b1e4775ae598..eee1fb6a44c1 100644 --- a/src/library/export/engineprimeexportjob.cpp +++ b/src/library/export/engineprimeexportjob.cpp @@ -563,7 +563,9 @@ void EnginePrimeExportJob::run() { qWarning() << "Failed to export track" << m_pLastLoadedTrack->getId().toString() << ":" << e.what(); - m_lastErrorMessage = e.what(); + m_lastErrorMessage = + "Failed to export track " % m_pLastLoadedTrack->getArtist() % + " - " % m_pLastLoadedTrack->getTitle() % ":\n" % e.what(); emit failed(m_lastErrorMessage); return; }