You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ke...@apache.org on 2026/01/09 15:05:22 UTC

(skywalking-eyes) 01/01: fix: improve error message formatting in license template lookup

This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch 11648
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git

commit 2ef52e760e740a28d2afed31f467266a9f1477a1
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Fri Jan 9 23:04:52 2026 +0800

    fix: improve error message formatting in license template lookup
---
 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
 }