r19557 by craig - #12748: Apply patch to fix scripter error message
scribus-commit
scribus-commit at lists.scribus.net
Tue Oct 7 20:55:45 UTC 2014
Author: craig
Date: Tue Oct 7 20:55:45 2014
New Revision: 19557
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19557
Log:
#12748: Apply patch to fix scripter error message
Modified:
branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
Modified: branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19557&path=/branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp Tue Oct 7 20:55:45 2014
@@ -149,7 +149,7 @@
bool ret = ScCore->primaryMainWindow()->loadDoc(QString::fromUtf8(Name));
if (!ret)
{
- PyErr_SetString(ScribusException, QObject::tr("Failed to open document.","python error").toLocal8Bit().constData());
+ PyErr_SetString(ScribusException, QObject::tr("Failed to open document: %1","python error").arg(Name).toLocal8Bit().constData());
return NULL;
}
return PyBool_FromLong(static_cast<long>(true));
More information about the scribus-commit
mailing list