Do not print error, instead raise an exception that need to be caught. The calling method will then decide if the error should be displayed or not.