mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-11 08:05:33 -06:00
states/statemgr: Properly return error when Unlock detects invalid lock id
This commit is contained in:
parent
61a760938f
commit
bcaf7f7ba7
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user