writing to stderr:an error has occurred.