Add TODO for multierror

pull/102/head
Matt Baer 6 years ago
parent f38a135bfa
commit 36b160b706
  1. 1
      app.go
  2. 1
      key/key.go

@ -496,6 +496,7 @@ func GenerateKeyFiles(app *App) error {
// Generate keys
initKeyPaths(app)
// TODO: use something like https://github.com/hashicorp/go-multierror to return errors
var keyErrs error
err := generateKey(emailKeyPath)
if err != nil {

@ -27,6 +27,7 @@ type Keychain struct {
// skipping any that already exist.
func (keys *Keychain) GenerateKeys() error {
// Generate keys only if they don't already exist
// TODO: use something like https://github.com/hashicorp/go-multierror to return errors
var err, keyErrs error
if len(keys.EmailKey) == 0 {
keys.EmailKey, err = GenerateBytes(EncKeysBytes)

Loading…
Cancel
Save