slcc: Add handling of message types to error handling macros