You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/01/31 18:24:01 UTC

[couchdb] 01/01: Fix handling jiffy exceptions

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch fix-jiffy-exception-type
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit ef479db65f3e9c947f1816613bb3e3fe52dc3e32
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Fri Jan 31 12:24:36 2020 -0600

    Fix handling jiffy exceptions
    
    The 1.0 release of Jiffy changed from `throw` to `error` to match Erlang
    style better.
---
 src/couch/src/couch_util.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/src/couch_util.erl b/src/couch/src/couch_util.erl
index 180db95..a785e2e 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.