Skip to content

Commit

Permalink
0.1.1: use FreezeError
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Aug 28, 2020
1 parent 539b541 commit bca0ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frosty.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const

type
FreezeError* = ValueError ##
## An error raised during `freeze`. (unused)
## An error raised during `freeze`.
ThawError* = ValueError ##
## An error raised during `thaw`.

Expand Down Expand Up @@ -178,7 +178,7 @@ proc write[S, T](s: var Serializer[S]; o: ref T; parent = 0) =
if g.p != parent:
s.write o[], parent = g.p
else:
raise
raise newException(FreezeError, "unexpected cycle")

proc readTuple[S, T](s: var Serializer[S]; o: var T; skip = false) =
var skip = skip
Expand Down
2 changes: 1 addition & 1 deletion frosty.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.1.0"
version = "0.1.1"
author = "disruptek"
description = "serialize native Nim objects via streams, sockets"
license = "MIT"
Expand Down

0 comments on commit bca0ecb

Please sign in to comment.