Commit fd640624 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix irma scheme verify output on individual schemes

Verifying an individual scheme no emits the same warnings and errors as verifying multiple schemes.
parent 5591fd3e
......@@ -6,10 +6,10 @@ import (
"fmt"
"github.com/go-errors/errors"
"github.com/privacybydesign/irmago"
"github.com/privacybydesign/irmago/internal/fs"
"github.com/spf13/cobra"
"github.com/go-errors/errors"
)
// verifyCmd represents the verify command
......@@ -68,7 +68,23 @@ func VerifyScheme(path string) error {
return err
}
return conf.ParseSchemeManagerFolder(path, irma.NewSchemeManager(filepath.Base(path)))
scheme := irma.NewSchemeManager(filepath.Base(path))
if err = conf.ParseSchemeManagerFolder(path, scheme); err != nil {
return err
}
if err := conf.CheckKeys(); err != nil {
return err
}
if err := conf.VerifySchemeManager(scheme); err != nil {
return err
}
for _, warning := range conf.Warnings {
fmt.Println("Warning: " + warning)
}
return nil
}
func VerifyIrmaConfiguration(path string) error {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment