We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17e6c0d commit 4a72e60Copy full SHA for 4a72e60
1 file changed
packer/cache.go
@@ -34,5 +34,10 @@ func CachePath(paths ...string) (path string, err error) {
34
35
paths = append([]string{cacheDir}, paths...)
36
fmt.Println(fmt.Sprintf("paths: %s", paths))
37
- return filepath.Abs(filepath.Join(paths...))
+ result, err := filepath.Abs(filepath.Join(paths...))
38
+ if err != nil {
39
+ return "", err
40
+ }
41
+ fmt.Println(fmt.Sprintf("result: %s", result))
42
+ return result, err
43
}
0 commit comments