Improved library assertion messages