Sonar: Added missing message for asserts