diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-01-31 12:29:18 -0600 |
---|---|---|
committer | Joan Touzet <wohali@users.noreply.github.com> | 2020-01-31 18:56:54 +0000 |
commit | 96e90c44eb9bf70a3d05fbb6e9f637ca88a2745a (patch) | |
tree | d4be00db559d1c5fef1cf789aa3794b5554312e9 | |
parent | f93d1a72de07bfe02f7a3b17b1816196c616ae1f (diff) | |
download | couchdb-96e90c44eb9bf70a3d05fbb6e9f637ca88a2745a.tar.gz |
Jiffy exceptions are errors now
Jiffy changed its exception type in 1.0 to match the standard Erlang
style for exceptions that cross an API boundary.
-rw-r--r-- | src/couch/src/couch_util.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch/src/couch_util.erl b/src/couch/src/couch_util.erl index 180db9518..a785e2e44 100644 --- a/src/couch/src/couch_util.erl +++ b/src/couch/src/couch_util.erl @@ -501,7 +501,7 @@ json_decode(V) -> try jiffy:decode(V, [dedupe_keys]) catch - throw:Error -> + error:Error -> throw({invalid_json, Error}) end. |