diff options
| author | Taras Madan <tarasmadan@google.com> | 2023-07-21 11:54:11 +0200 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2023-07-24 09:12:13 +0000 |
| commit | 7549a7e1b57831cf6b08ce4700fc6e53417919f9 (patch) | |
| tree | 8e027cdaf7abbc52a5fb29c37c7137dfd2122e7a /pkg/kconfig | |
| parent | f7eecac8b446ef11cff4122de6f496ad5eaba3a9 (diff) | |
all: use special placeholder for errors
Diffstat (limited to 'pkg/kconfig')
| -rw-r--r-- | pkg/kconfig/config.go | 2 | ||||
| -rw-r--r-- | pkg/kconfig/kconfig.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/kconfig/config.go b/pkg/kconfig/config.go index 4b01997a0..0f3f09dc2 100644 --- a/pkg/kconfig/config.go +++ b/pkg/kconfig/config.go @@ -107,7 +107,7 @@ func (cf *ConfigFile) Serialize() []byte { func ParseConfig(file string) (*ConfigFile, error) { data, err := os.ReadFile(file) if err != nil { - return nil, fmt.Errorf("failed to open .config file %v: %v", file, err) + return nil, fmt.Errorf("failed to open .config file %v: %w", file, err) } return ParseConfigData(data, file) } diff --git a/pkg/kconfig/kconfig.go b/pkg/kconfig/kconfig.go index cd05cdbb1..b5d0c0455 100644 --- a/pkg/kconfig/kconfig.go +++ b/pkg/kconfig/kconfig.go @@ -120,7 +120,7 @@ type kconfigParser struct { func Parse(target *targets.Target, file string) (*KConfig, error) { data, err := os.ReadFile(file) if err != nil { - return nil, fmt.Errorf("failed to open Kconfig file %v: %v", file, err) + return nil, fmt.Errorf("failed to open Kconfig file %v: %w", file, err) } return ParseData(target, data, file) } |
