Skip to content

Commit 23abee7

Browse files
zduneckiCopilot
andauthored
Update maker/maker.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ebd4e3f commit 23abee7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

maker/maker.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,9 @@ func Make(options MakeOptions) ([]byte, error) {
591591
for _, f := range options.Files {
592592
absPath := f
593593
if !filepath.IsAbs(absPath) {
594-
if p, err := filepath.Abs(absPath); err == nil {
594+
if p, err := filepath.Abs(absPath); err != nil {
595+
log.Printf("maker: failed to convert %q to absolute path: %v", absPath, err)
596+
} else {
595597
absPath = p
596598
}
597599
}

0 commit comments

Comments
 (0)