Fix more error strings

This commit is contained in:
Frederik Ring
2022-09-15 10:49:45 +02:00
parent eb9a198327
commit 00c83dfac7
4 changed files with 11 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ func (s *script) lock(lockfile string) (func() error, error) {
for {
acquired, err := fileLock.TryLock()
if err != nil {
return noop, fmt.Errorf("lock: error trying lock: %w", err)
return noop, fmt.Errorf("lock: error trying to lock: %w", err)
}
if acquired {
if s.encounteredLock {