Include condition's location (class or method name) in message

Closes gh-1787