r19556 by craig - #12748: Apply patch to fix scripter error message

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 7 20:53:44 UTC 2014


Author: craig
Date: Tue Oct  7 20:53:44 2014
New Revision: 19556

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19556
Log:
#12748: Apply patch to fix scripter error message

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19556&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp Tue Oct  7 20:53:44 2014
@@ -171,7 +171,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