Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export yaml specific exceptions that are part of API #144

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading