debug catalog path

dev
Tarun Koyalwar 2023-03-27 21:23:18 +05:30
parent f8c5a45966
commit cb5f7d06a2
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {