[acme db interface] unit test progress
This commit is contained in:
parent
bb8d54e596
commit
f71e27e787
7 changed files with 47 additions and 61 deletions
|
@ -411,7 +411,7 @@ const (
|
|||
func accountFromContext(ctx context.Context) (*acme.Account, error) {
|
||||
val, ok := ctx.Value(accContextKey).(*acme.Account)
|
||||
if !ok || val == nil {
|
||||
return nil, acme.NewErrorISE("account not in context")
|
||||
return nil, acme.NewError(acme.ErrorAccountDoesNotExistType, "account not in context")
|
||||
}
|
||||
return val, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue