Commit 27b0921a authored by Sietse Ringers's avatar Sietse Ringers
Browse files

schememgr: improve index error message and allow folder names other than irma_configuration

parent 7d17151b
......@@ -631,7 +631,7 @@ func (conf *Configuration) parseIndex(name string, manager *SchemeManager) error
func (conf *Configuration) ReadAuthenticatedFile(manager *SchemeManager, path string) ([]byte, error) {
signedHash, ok := manager.Index[path]
if !ok {
return nil, errors.New("File not present in scheme manager index")
return nil, errors.Errorf("File %s not present in scheme manager index", path)
}
bts, err := ioutil.ReadFile(filepath.Join(conf.path, path))
......
......@@ -6,7 +6,6 @@ import (
"fmt"
"github.com/privacybydesign/irmago"
"github.com/go-errors/errors"
"github.com/spf13/cobra"
)
......@@ -32,7 +31,7 @@ func RunVerify(path string) error {
return err
}
if filepath.Base(path) != "irma_configuration" {
return errors.New("Path is not irma_configuration")
fmt.Printf("Notice: specified folder name is '%s'; when using in IRMA applications it should be called 'irma_configuration'\n", filepath.Base(path))
}
conf, err := irma.NewConfiguration(path, "")
......
Supports Markdown
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