LPS-44266 Improve assert messages.