fixing dumb error in trace

This commit is contained in:
Dmitriy Ryajov 2023-09-15 16:54:50 -06:00
parent f849c1cf29
commit 52d6a857ac
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ proc hasTask(ctx: ptr TaskCtx, key: ptr Key) =
try:
waitFor asyncHasTask(ctx, key)
except CatchableError as exc:
trace "Unexpected exception thrown in asyncHasTask", error = error.msg
trace "Unexpected exception thrown in asyncHasTask", exc = exc.msg
raiseAssert exc.msg
method has*(self: ThreadDatastore, key: Key): Future[?!bool] {.async.} =
@ -192,7 +192,7 @@ proc delTask(ctx: ptr TaskCtx, key: ptr Key) =
try:
waitFor asyncDelTask(ctx, key)
except CatchableError as exc:
trace "Unexpected exception thrown in asyncDelTask", error = error.msg
trace "Unexpected exception thrown in asyncDelTask", exc = exc.msg
raiseAssert exc.msg
method delete*(
@ -259,7 +259,7 @@ proc putTask(
try:
waitFor asyncPutTask(ctx, key, data, len)
except CatchableError as exc:
trace "Unexpected exception thrown in asyncPutTask", error = error.msg
trace "Unexpected exception thrown in asyncPutTask", exc = exc.msg
raiseAssert exc.msg
method put*(
@ -327,7 +327,7 @@ proc getTask(
try:
waitFor asyncGetTask(ctx, key)
except CatchableError as exc:
trace "Unexpected exception thrown in asyncGetTask", error = error.msg
trace "Unexpected exception thrown in asyncGetTask", exc = exc.msg
raiseAssert exc.msg
method get*(
@ -401,7 +401,7 @@ proc queryTask(
try:
waitFor asyncQueryTask(ctx, iter)
except CatchableError as exc:
trace "Unexpected exception thrown in asyncQueryTask", error = error.msg
trace "Unexpected exception thrown in asyncQueryTask", exc = exc.msg
raiseAssert exc.msg
method query*(