}
draft, ok := iv.(*document.Draft)
if !ok {
- err = fmt.Errorf("ParseDraft: expected a draft docuent")
+ err = fmt.Errorf("ParseDraft: expected a draft document")
return
}
draftid = document.Id(signed)
if err != nil {
// first cert: drawer is issuer
if draft.Drawer != draft.Issuer {
- return nil, fmt.Errorf("drawer must be the issuer when drawing an empty account")
+ return nil, fmt.Errorf("drawer must be the issuer when drawing an empty account (%s != %s)", draft.Drawer, draft.Issuer)
}
cert.Serial = 1
cert.Balance = cert.Difference