Error reporting: Report alert message where available.

This commit improves error reporting by including alert text where alert text is available.