You may find this macro helpful:
###MACRO: [KM] Display Macro Error
For more information, see the wiki Searching the Forum for Answers section.