The act by which somebody is consoled.
Something that deters.
Serving to deter, preventing something from happening.