Improve tmpl error message
Better error message if directories are missing.
@@ -70,7 +70,7 @@ func ProcessSelector(selector string) (map[addr.ISD][]addr.IA, error) {
return nil, err
}
if len(isdDirs) == 0 {
- return nil, common.NewBasicError("No directories found", nil, "selector", selector)
+ return nil, common.NewBasicError("No ISD directories found", nil, "selector", selector)
}
res := make(map[addr.ISD][]addr.IA)
for _, dir := range isdDirs {
@@ -83,7 +83,7 @@ func ProcessSelector(selector string) (map[addr.ISD][]addr.IA, error) {
return nil, err
}
if len(dirs) == 0 {
- return nil, common.NewBasicError("No directories found", nil, "selector", selector)
+ return nil, common.NewBasicError("No AS directories found", nil, "selector", selector)
}
ases := make([]addr.IA, len(dirs))
for i, asDir := range dirs {
