commit | 89b2bfb00f09600141f04aee3d0485682f81c859 | [log] [tgz] |
---|---|---|
author | Tilak Sharma <tilaks@google.com> | Wed Jul 30 16:32:54 2014 -0700 |
committer | Tilak Sharma <tilaks@google.com> | Sun Aug 03 17:56:48 2014 -0700 |
tree | 66da8fd1ffd41b1f4fc8dd2fa5b071006f19e12e | |
parent | 0ba62c85409e88dba21eee09eb37fe683371c09c [diff] |
veyron/services/store: Don't put values of the wrong type. Previously, if the caller tried to put a value of the wrong type into a top-level field, the value would be placed in the implicit directory of the object, under the same name as that field. This fix adds a new failure class to field.Set. If the value has the wrong type, field.Set will return SetFailedWrongType, and Put() will return an error. Change-Id: I8a6294c5a717434909e36d51e73b82a64bcb727c