print error message when the necessary environment variables are not
defined