mirror of https://github.com/restic/restic.git
build.go: Don't ignore error
This commit is contained in:
parent
f1b0bb33dd
commit
d31666d332
2
build.go
2
build.go
|
@ -208,7 +208,7 @@ func copyFile(dst, src string) error {
|
||||||
err = os.Chtimes(dst, fi.ModTime(), fi.ModTime())
|
err = os.Chtimes(dst, fi.ModTime(), fi.ModTime())
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// die prints the message with fmt.Fprintf() to stderr and exits with an error
|
// die prints the message with fmt.Fprintf() to stderr and exits with an error
|
||||||
|
|
Loading…
Reference in New Issue