Skip to content

Commit

Permalink
Update internal/repositories/equipment.go
Browse files Browse the repository at this point in the history
Wrap with err with fmt.Errorf for more verbosity

Co-authored-by: Michael Salamakha <[email protected]>
  • Loading branch information
wvxiw8 and WolfusFlow authored Jul 11, 2024
1 parent 160b5d7 commit 7e37075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/repositories/equipment.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (r *equipmentRepository) BlockEquipment(
}
} else {
// Means multiple "not available" (blocking) statuses exist per single equipment. Must never happen
return err
return fmt.Errorf("multiple statuses not available for blocking period: %w", err)
}

// Get OrderStatusName form DB
Expand Down

0 comments on commit 7e37075

Please sign in to comment.