template forErrno(res: NimNode; err; body)
template whenDefErrno(res: NimNode; errnoName: string; body): untyped {.dirty.}