also print error code and message to stderr