Skip to content

Commit 8a5bdb7

Browse files
committed
try_encode() の成功時の返り値を修正
1 parent 1dc77fa commit 8a5bdb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsone.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ try_encode(JsonValue) ->
128128
{ok, binary()} | {error, {Reason :: term(), [stack_item()]}}.
129129
try_encode(JsonValue, Options) ->
130130
try
131-
encode(JsonValue, Options)
131+
{ok, encode(JsonValue, Options)}
132132
catch
133133
error:Reason:Stacktrace ->
134134
{error, {Reason, Stacktrace}}

0 commit comments

Comments
 (0)