From 7e035ec3bf277a0b21de7b92ee32df7f31db479f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 25 Mar 2022 12:36:06 +0100 Subject: [PATCH] Manager: check returned error of touchfile call --- pkg/shaman/checkout/manager.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/shaman/checkout/manager.go b/pkg/shaman/checkout/manager.go index b2726dc3..d4302219 100644 --- a/pkg/shaman/checkout/manager.go +++ b/pkg/shaman/checkout/manager.go @@ -201,7 +201,9 @@ func (m *Manager) SymlinkToCheckout(blobPath, checkoutPath, symlinkRelativePath // Change the modification time of the blob to mark it as 'referenced' just now. m.wg.Add(1) go func() { - touchFile(blobPath) + if err := touchFile(blobPath); err != nil { + logger.Warn().Err(err).Msg("shaman: unable to touch blob path") + } m.wg.Done() }()