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:00 UTC

[couchdb] branch fix-jiffy-exception-type created (now ef479db)

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

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


      at ef479db  Fix handling jiffy exceptions

This branch includes the following new commits:

     new ef479db  Fix handling jiffy exceptions

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[couchdb] 01/01: Fix handling jiffy exceptions

Posted by da...@apache.org.
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.