switch error statement to dump to stderr.