Commit 4f379880 authored by Tomas's avatar Tomas
Browse files

fix: Make irma scheme verify fail when specific folder isn't a scheme, and...

fix: Make irma scheme verify fail when specific folder isn't a scheme, and also doesn't contain any subfolders.
parent 63968d2d
......@@ -9,6 +9,7 @@ import (
"github.com/privacybydesign/irmago"
"github.com/privacybydesign/irmago/internal/fs"
"github.com/spf13/cobra"
"github.com/go-errors/errors"
)
// verifyCmd represents the verify command
......@@ -85,6 +86,9 @@ func VerifyIrmaConfiguration(path string) error {
if err := conf.CheckKeys(); err != nil {
return err
}
if len(conf.SchemeManagers) == 0 {
return errors.New("Specified folder doesn't contain any schemes")
}
for _, manager := range conf.SchemeManagers {
if err := conf.VerifySchemeManager(manager); err != nil {
......
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