From bb53d49caf2a6c6cf1df365ba84af93cdcfa7aa3 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 6 Jul 2023 09:13:29 +0200 Subject: [PATCH] missing raises (#61) --- json_serialization/reader.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/json_serialization/reader.nim b/json_serialization/reader.nim index ecdc7bd..c9c18c7 100644 --- a/json_serialization/reader.nim +++ b/json_serialization/reader.nim @@ -702,7 +702,8 @@ proc readValue*[T](r: var JsonReader, value: var T) const typeName = typetraits.name(T) {.error: "Failed to convert to JSON an unsupported type: " & typeName.} -iterator readObjectFields*(r: var JsonReader): string = +iterator readObjectFields*(r: var JsonReader): string {. + raises: [IOError, SerializationError].} = for key in readObjectFields(r, string): yield key