Changeset 334 for cpp/frams/param


Ignore:
Timestamp:
03/01/15 01:41:23 (8 years ago)
Author:
Maciej Komosinski
Message:

More specific error messages on failed deserialization (and the resulting value becomes null)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/param.cpp

    r333 r334  
    604604                        after = e.deserialize(v + strlen(SERIALIZATION_PREFIX));
    605605                        if ((after == NULL) || (*after))
     606                                {
    606607                                FMprintf("ParamInterface", "set", FMLV_WARN, "serialization format mismatch in %s.%s", (getName() ? getName() : "<Unknown>"), id(i));
     608                                e.setEmpty();
     609                                }
    607610                }
    608611                else if ((after = e.parseNumber(v)) && (*after == 0)) //consumed the whole string
Note: See TracChangeset for help on using the changeset viewer.