Explorar el Código

Removed the extraneous warning message since you will
get an exception with the same info (and it's not a
warning anyway, it's fatal).
Also improved the error message to include the field
that failed to write.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8960 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om hace 14 años
padre
commit
1083cbd5aa

+ 1 - 2
engine/src/networking/com/jme3/network/serializing/serializers/FieldSerializer.java

@@ -179,8 +179,7 @@ public class FieldSerializer extends Serializer {
             } catch (BufferOverflowException boe) {
                 throw boe;
             } catch (Exception e) {
-                log.log(Level.WARNING, "[FieldSerializer][???] Exception occurred on writing. Maybe you've forgotten to register a class, or maybe a class member does not have a serializer.");
-                throw new SerializerException( "Error writing object", e);
+                throw new SerializerException( "Error writing object for field:" + savedField.field, e );
             }
         }
     }