adds model-specific information prefix to the error message msg.