# HG changeset patch # User Chris Cannam # Date 1433938419 -3600 # Node ID 9ae8a300cf7f95e94143a2fe738d6ddffaf807bc # Parent 92f610ae640d19b6cc28e97a9e6e96f37becd494 Report error if transform fails (during operation, rather than at start as was already reported) diff -r 92f610ae640d -r 9ae8a300cf7f .hgsubstate --- a/.hgsubstate Fri May 22 10:42:15 2015 +0100 +++ b/.hgsubstate Wed Jun 10 13:13:39 2015 +0100 @@ -1,5 +1,5 @@ d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay 55ece8862b6d3a54aad271a53f9c1615e5d3bcf8 sv-dependency-builds -1ab4ac6b2fcb8c8fd85716c8f1033b0ab780d53c svapp -882d448c8a6da6a92202efcf7d5c68551091267a svcore +8125b8cb8128b71ba9eb0759a8774c8038cd16e8 svapp +b6092700a73ea770fcad75b1669ea800f6ac2aa1 svcore fd934705973f2806ebf2624f0416341f545e8b50 svgui diff -r 92f610ae640d -r 9ae8a300cf7f main/MainWindow.cpp --- a/main/MainWindow.cpp Fri May 22 10:42:15 2015 +0100 +++ b/main/MainWindow.cpp Wed Jun 10 13:13:39 2015 +0100 @@ -4296,20 +4296,25 @@ { emit hideSplash(); + QString quoted; + if (transformName != "") { + quoted = QString("\"%1\" ").arg(transformName); + } + if (message != "") { QMessageBox::warning (this, tr("Failed to generate layer"), - tr("Layer generation failed
Failed to generate derived layer.
The layer transform \"%1\" failed:
%2") - .arg(transformName).arg(message), + tr("Layer generation failed
Failed to generate derived layer.
The layer transform %1failed:
%2") + .arg(quoted).arg(message), QMessageBox::Ok); } else { QMessageBox::warning (this, tr("Failed to generate layer"), - tr("Layer generation failed
Failed to generate a derived layer.
The layer transform \"%1\" failed.
No error information is available.") - .arg(transformName), + tr("Layer generation failed
Failed to generate a derived layer.
The layer transform %1failed.
No error information is available.") + .arg(quoted), QMessageBox::Ok); } }