Once again, we could probably do `err.errno in` here.