Propagate json error object to the caller
authorEugene Yakubovich <eugene.yakubovich@coreos.com>
Tue, 2 Jun 2015 00:34:00 +0000 (17:34 -0700)
committerEugene Yakubovich <eugene.yakubovich@coreos.com>
Tue, 9 Jun 2015 17:46:28 +0000 (10:46 -0700)
commit31c0dbf11095325de431cdc62ba50b5a9e41c218
treec28d39a49eb444ed95a8ebb110f3ef82aa83e6f5
parenta6a822268c637bc99ff5f7967e3a9d757e504ea0
Propagate json error object to the caller

When plugin errors out, it prints out a JSON object to stdout
describing the failure. This object needs to be propagated out
through the plugins and to the container runtime. This change
also adds Print method to both the result and error structs
for easy serialization to stdout.
plugin/ipam.go
plugin/types.go
skel/skel.go