This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git
The following commit(s) were added to refs/heads/main by this push:
new 02a7f6d fix: improve error message formatting in license template
lookup (#256)
02a7f6d is described below
commit 02a7f6d40de257c3e8ef8079a9a96499ec9e0929
Author: kezhenxu94 <[email protected]>
AuthorDate: Fri Jan 9 23:28:09 2026 +0800
fix: improve error message formatting in license template lookup (#256)
---
pkg/header/config.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/header/config.go b/pkg/header/config.go
index 98438e7..4568e51 100644
--- a/pkg/header/config.go
+++ b/pkg/header/config.go
@@ -208,7 +208,7 @@ func readLicenseFromSpdx(config *ConfigHeader) (string,
error) {
content, err := assets.Asset(filename)
if err != nil {
- return "", fmt.Errorf("failed to find a license template for
spdx id %v, %w", spdxID, err)
+ return "", fmt.Errorf(`failed to find a license template for
spdx id "%v", %w`, spdxID, err)
}
return string(content), nil
}