As soon as you have a KM error, run this macro: MACRO: Display Last KM Macro Error
For more information, see the wiki Searching the Forum for Answers section.