missing raises (#61)

This commit is contained in:
Jacek Sieka 2023-07-06 09:13:29 +02:00 committed by GitHub
parent e32e8ad916
commit bb53d49caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -702,7 +702,8 @@ proc readValue*[T](r: var JsonReader, value: var T)
const typeName = typetraits.name(T) const typeName = typetraits.name(T)
{.error: "Failed to convert to JSON an unsupported type: " & typeName.} {.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): for key in readObjectFields(r, string):
yield key yield key