Is it an emergency thing when the doctor finds a mass in your liver?

No, but serious. A mass in the liver is not an emergency but is a serious finding that needs to be investigated to determine the cause of the mass and devise appropriate treatment. A mass in the liver has an appreciable risk of being cancer.