expression

A sting in the tail.

Theme: consequences Keyword: insect

means

An unpleasant or unexpected element at the end of something otherwise agreeable.

Example

The contract offered generous terms but had a sting in the tail.