Just tried to delete comment and got error:
Seems "voting" should be replaced with "deleting".
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.Sign up to join this community
Deletion is done by voting, so the text is accurate enough. This is the case even when it takes only one vote, such as when self-deleting a post or when done by a moderator's binding delete vote.
One could argue that the message is still counterintuitive because most people expect an error message about deleting to mention deleting, not voting. One could equally argue though that it reinforces the little-appreciated fact that all delete attempts are done via a delete vote.
If @rene is correct with their comment:
That probably goes through the same endpoint that also handles voting.
then there are two solutions. One is that SE changes how the process gets handled where voting and deletion on or of a comment respectively are separate and we can have two different pop-ups as you suggested. A second solution makes the text a bit more broad:
An error occurred while processing your request
An error occurred while executing your request