{"push_id":739170745,"size":4,"distinct_size":4,"ref":"refs/heads/master","head":"ba5126409e0340d53e989ad07501a14949889a0d","before":"aeade84400a85c6875264ae51c7a56ecdcb61751","commits":[{"sha":"9f0025d371481fc71a07d93d654c1d73d517a5a0","author":{"email":"70cd3f8ebe40a5b824db903e35a416d9ad099b49@flux.io","name":"Keunwoo Lee"},"message":"Make errors more distinguishable\n\nPrior to this commit, this library raised errors either mostly using\nerrors.New() or directly passing through error values from underlying\nlibraries.  This made it difficult for clients to respond correctly to\nthe errors that were returned.\n\nThis becomes particularly problematic when securecookie is used together\nwith gorilla/sessions.  From an operations standpoint, you often want to\nlog different errors when the client simply provides an invalid auth\ncookie, versus an I/O error fetching data from the session store.  The\nformer probably indicates an expired timestamp or similar client error;\nthe latter indicates a possible failure in a backend database.\n\nThis commit introduces a public Error interface, which is now returned\nconsistently on all errors, and can be used to distinguish between\nimplementation errors (IsUsage() and IsInternal()) and failed validation\nof user input (IsDecode()).\n\nSee also discussion on pull requests #9 and #24:\nhttps://github.com/gorilla/securecookie/pull/9\nhttps://github.com/gorilla/securecookie/pull/24\n\nSome interface comments on other API functions have been clarified and\nupdated to harmonize with the new error interfaces.","distinct":true,"url":"https://api.github.com/repos/gorilla/securecookie/commits/9f0025d371481fc71a07d93d654c1d73d517a5a0"},{"sha":"ba5d1f998dfc2cd8dd155c61a23c9b2d728f243b","author":{"email":"70cd3f8ebe40a5b824db903e35a416d9ad099b49@flux.io","name":"Keunwoo Lee"},"message":"Rename errorImpl -> cookieError\n\nPer elithrar comment on PR 28:\nhttps://github.com/gorilla/securecookie/pull/28#discussion_r35059597","distinct":true,"url":"https://api.github.com/repos/gorilla/securecookie/commits/ba5d1f998dfc2cd8dd155c61a23c9b2d728f243b"},{"sha":"8cd214031158fefb8faa539250849441807744fd","author":{"email":"70cd3f8ebe40a5b824db903e35a416d9ad099b49@flux.io","name":"Keunwoo Lee"},"message":"Move error type assertions to test file.\n\nPer elithrar comment on PR 28:\nhttps://github.com/gorilla/securecookie/pull/28#discussion_r35059831","distinct":true,"url":"https://api.github.com/repos/gorilla/securecookie/commits/8cd214031158fefb8faa539250849441807744fd"},{"sha":"ba5126409e0340d53e989ad07501a14949889a0d","author":{"email":"ab239c5a26a103f02214f1ae199f6dad0108e000@kamilkisiel.net","name":"Kamil Kisiel"},"message":"Merge pull request #28 from keunwoo/keunwoo-errors-alt-20150720\n\nMake errors more distinguishable","distinct":true,"url":"https://api.github.com/repos/gorilla/securecookie/commits/ba5126409e0340d53e989ad07501a14949889a0d"}]}