···6767 }(fin)
68686969 anubisPolicy, err := policy.ParseConfig(fin, fname, defaultDifficulty)
7070+ if err != nil {
7171+ return nil, fmt.Errorf("can't parse policy file %s: %w", fname, err)
7272+ }
7073 var validationErrs []error
71747275 for _, b := range anubisPolicy.Bots {
···154157 // make-challenge is only used in tests. Only enable while version is devel
155158 registerWithPrefix(anubis.APIPrefix+"make-challenge", http.HandlerFunc(result.MakeChallenge), "POST")
156159 }
157157-160160+158161 for _, implKind := range challenge.Methods() {
159162 impl, _ := challenge.Get(implKind)
160163 impl.Setup(mux)