Skip to content

Commit

Permalink
fix: minor fixes on Printf
Browse files Browse the repository at this point in the history
micovery committed Apr 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9b04dfd commit 1af69f1
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
@@ -72,9 +72,9 @@ func ProxyBundleDir2YAML(inputDir string, outputFile string) error {
apiProxyDir := filepath.Join(inputDir, "apiproxy")
stat, err := os.Stat(apiProxyDir)
if err != nil {
return errors.Errorf("%s not found. %s", err.Error())
return errors.Errorf("%s not found. %s", apiProxyDir, err.Error())
} else if !stat.IsDir() {
return errors.Errorf("%s is not a directory")
return errors.Errorf("%s is not a directory", apiProxyDir)
}

fSys := os.DirFS(apiProxyDir)
2 changes: 1 addition & 1 deletion pkg/render/oas.go
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ func RenderOAS(specFile string, flags *Flags) error {
context.OAS3 = OAS
context.OAS3Str = string(specFileText)
} else {
return errors.Errorf(`OAS version "%s" is not supported`, specVersion)
return errors.Errorf(`OAS version "%v" is not supported`, specVersion)
}

return RenderGeneric(context, flags)

0 comments on commit 1af69f1

Please sign in to comment.