Improved error messages with comments