xordataexchange / crypt

Store and retrieve encrypted configs from etcd or consul
http://xordataexchange.github.io/crypt/
MIT License
526 stars 112 forks source link

Adding check for nil kv response to avoid runtime panics #13

Closed divideandconquer closed 9 years ago

divideandconquer commented 9 years ago

Fetching key value pairs would panic if the pair didn't exist, now it returns an error instead in both Watch and Get

cjhubert commented 9 years ago

+1

bketelsen commented 9 years ago

Thanks for this PR.