Report as useful a message as we can when we have an error.

I was getting an IllegalArgumentException and the message was "null",
so this will at least log the name of the exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4263 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-07-12 23:57:14 +00:00
parent 1818bd14dd
commit ca06b47835
+3 -1
View File
@@ -35,8 +35,10 @@ import java.security.PrivilegedActionException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import com.samskivert.util.ClassUtil;
import com.samskivert.util.StringUtil;
import static com.threerings.NaryaLog.log;
@@ -375,7 +377,7 @@ public class Streamer
String errmsg = "Failure reading streamable field " +
"[class=" + _target.getName() +
", field=" + field.getName() +
", error=" + e.getMessage() + "]";
", error=" + StringUtil.getMessage(e) + "]";
throw (IOException) new IOException(errmsg).initCause(e);
}
}