mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-07 21:01:46 -04:00
states/statemgr: Properly return error when Unlock detects invalid lock id
This commit is contained in:
@@ -336,7 +336,7 @@ func (s *Filesystem) Unlock(id string) error {
|
||||
idErr := fmt.Errorf("invalid lock id: %q. current id: %q", id, s.lockID)
|
||||
info, err := s.lockInfo()
|
||||
if err != nil {
|
||||
err = multierror.Append(idErr, err)
|
||||
idErr = multierror.Append(idErr, err)
|
||||
}
|
||||
|
||||
return &LockError{
|
||||
|
||||
Reference in New Issue
Block a user