Add TODO for multierror

This commit is contained in:
Matt Baer 2019-06-14 19:11:03 -04:00
parent f38a135bfa
commit 36b160b706
2 changed files with 2 additions and 0 deletions

1
app.go
View file

@ -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 {

View file

@ -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)