'err' should be stderr.