|
From: <nr...@us...> - 2009-07-31 19:20:03
|
Revision: 6616
http://jython.svn.sourceforge.net/jython/?rev=6616&view=rev
Author: nriley
Date: 2009-07-31 19:19:56 +0000 (Fri, 31 Jul 2009)
Log Message:
-----------
Make clear which encoding can't be found.
Modified Paths:
--------------
trunk/jython/src/org/python/core/codecs.java
Modified: trunk/jython/src/org/python/core/codecs.java
===================================================================
--- trunk/jython/src/org/python/core/codecs.java 2009-07-31 19:19:46 UTC (rev 6615)
+++ trunk/jython/src/org/python/core/codecs.java 2009-07-31 19:19:56 UTC (rev 6616)
@@ -79,7 +79,7 @@
if (searchPath.__len__() == 0) {
throw new PyException(Py.LookupError,
"no codec search functions registered: " +
- "can't find encoding");
+ "can't find encoding '" + encoding + "'");
}
PyObject iter = searchPath.__iter__();
@@ -96,8 +96,8 @@
break;
}
if (func == null) {
- throw new PyException(Py.LookupError, "unknown encoding " +
- encoding);
+ throw new PyException(Py.LookupError, "unknown encoding '" +
+ encoding + "'");
}
searchCache.__setitem__(v, result);
return (PyTuple) result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|