hotfix(postgres):lab4 wrap raw error in MessageRepo.Create

This commit is contained in:
Голиков Maximillian Антон
2026-10-22 18:05:41 +03:00
parent f02d3b447d
commit 46423faf8d
+1 -1
View File
@@ -33,7 +33,7 @@ func (r *MessageRepo) Create(ctx context.Context, m *domain.Message) error {
if checkViolation(err) {
return &domain.ValidationError{Field: "text", Message: "нарушено ограничение"}
}
return err
return mapError(err)
}
return nil
}