print error and notice message to stderr