Add an error message, made class invocation more durable.