Skip to content

Commit

Permalink
fix(build-stage): don't throw when setting utime on missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Feb 24, 2021
1 parent c99f247 commit 3cbdfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/build-staging/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function doClone(params: CopyParams) {
}
// Set the mtime on the cloned file to the same as the source file
utimes(to, new Date(), sourceStats.mtimeMs / 1000, (utimesErr) => {
if (utimesErr) {
if (utimesErr && utimesErr.code !== "ENOENT") {
return done(utimesErr)
}
done(null, { skipped: false })
Expand Down

0 comments on commit 3cbdfef

Please sign in to comment.