Skip to content

Commit

Permalink
Export yaml specific exceptions that are part of API
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeme committed Jul 17, 2024
1 parent 25f600e commit a9fbe01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion yaml/loading.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import std / [ streams ]
import native, parser, private/internal
export native
export native, YamlConstructionError, YamlParserError

proc load*[K](input: Stream | string, target: var K)
{.raises: [YamlConstructionError, IOError, OSError, YamlParserError].} =
Expand Down
2 changes: 2 additions & 0 deletions yaml/tojson.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import json, streams, strutils, tables
import data, hints, native, stream, private/internal, parser

export YamlConstructionError, YamlParserError

# represents a single YAML level. The `node` with name `key`.
# `expKey` is used to indicate that an empty node shall be filled
type Level = tuple[node: JsonNode, key: string, expKey: bool]
Expand Down

0 comments on commit a9fbe01

Please sign in to comment.