mirror of https://github.com/daffainfo/nuclei.git
debug catalog path
parent
f8c5a45966
commit
cb5f7d06a2
|
@ -135,6 +135,7 @@ func (c Catalog) ResolvePath(templateName, second string) (string, error) {
|
|||
return key, nil
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// check if templateName is already an absolute path to c key
|
||||
|
@ -144,7 +145,7 @@ func (c Catalog) ResolvePath(templateName, second string) (string, error) {
|
|||
}
|
||||
}
|
||||
|
||||
return "", fmt.Errorf("no such path found: %s", templateName)
|
||||
return "", fmt.Errorf("no such path found: %s%s for keys: %v", second, templateName, keys)
|
||||
}
|
||||
|
||||
func (s *s3svc) getAllKeys() ([]string, error) {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
package aws
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
"io"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func TestCatalog_GetTemplatePath(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue