commit | 226f9b3dd451f09825cafc0105e0a5749f9b9e4e | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Tue May 17 11:23:47 2016 -0700 |
committer | Todd Wang <toddw@google.com> | Tue May 17 11:28:11 2016 -0700 |
tree | 5a5af8f1028c82692daf9e3ade972d6857b580ab | |
parent | b2952730cfa45eb9b6e9de68f8369fac3751406a [diff] |
Change verror WireToNative behavior. The old vdl/vom logic had a special-case when decoding into interface{}; if we found a type that wasn't registered, we'd fall back to creating a *vdl.Value. The new logic returns an error in this case instead. That changes how verror.WireToNative behaves; using the old logic, any types that weren't registered would result in *vdl.Value, which the java side handles correctly. The new logic would embed an error into the verror params, which causes Java to behave erratically. Instead of embedding the error, we fall back to the same special-case, where we just set the param to *vdl.Value instead. This seems better since it provides more data to the user. Change-Id: I706f75ce4d817ada7bed71c62fbf76bc3e3eccbb
This repository defines the Go APIs of Vanadium.