fix "future" typo

This commit is contained in:
Giovanni Petrantoni 2020-05-26 16:08:09 +09:00
parent 4447d97234
commit 536555138c
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ macro checkFutures*[T](futs: seq[Future[T]], exclude: untyped = []): untyped =
if res.failed:
let exc = res.readError()
# We still don't abort but warn
warn "A feature has failed, enable trace logging for details", error=exc.name
warn "A future has failed, enable trace logging for details", error=exc.name
trace "Exception message", msg=exc.msg
else:
quote do:
@ -29,10 +29,10 @@ macro checkFutures*[T](futs: seq[Future[T]], exclude: untyped = []): untyped =
let exc = res.readError()
for i in 0..<`nexclude`:
if exc of `exclude`[i]:
trace "A feature has failed", error=exc.name, msg=exc.msg
trace "A future has failed", error=exc.name, msg=exc.msg
break check
# We still don't abort but warn
warn "A feature has failed, enable trace logging for details", error=exc.name
warn "A future has failed, enable trace logging for details", error=exc.name
trace "Exception details", msg=exc.msg
proc allFuturesThrowing*[T](args: varargs[Future[T]]): Future[void] =