auth

Paddy 2014-10-15 Parent:d78418fb9f56 Child:e45bfa2abc00

49:73a9f7a6af54 Go to Latest

auth/profile.go

Update error strings, add ErrNo*Store errors. Update error strings to consistently begin with a lowercase letter and end without punctuation, as per the Go style guide. See https://code.google.com/p/go-wiki/wiki/CodeReviewComments#Error_Strings For each type of Store, add an ErrNo*Store error (e.g., ErrNoTokenStore) variable, to prepare for our Context type, which will throw these errors when a Store is used without being set.

History
     1.1 --- a/profile.go	Mon Sep 29 00:58:42 2014 -0400
     1.2 +++ b/profile.go	Wed Oct 15 23:22:19 2014 -0400
     1.3 @@ -13,6 +13,7 @@
     1.4  )
     1.5  
     1.6  var (
     1.7 +	ErrNoProfileStore       = errors.New("no ProfileStore was specified for the Context")
     1.8  	ErrProfileAlreadyExists = errors.New("profile already exists in ProfileStore")
     1.9  	ErrProfileNotFound      = errors.New("profile not found in ProfileStore")
    1.10  	ErrLoginAlreadyExists   = errors.New("login already exists in ProfileStore")