aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-12 09:16:55 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-12 09:16:55 -0300
commitec2c2994e6e5ca79ed21d0c6d7176c2f065a17cc (patch)
treee1e34b0db343a3a7846b9d25a215bb6663a59ad2
parentf1f1f711c78e408b39fd35bdb97cb17cd3994111 (diff)
parent9330579dcfaf948b2fa3dbff2836b37acb4c666e (diff)
downloadrneovim-ec2c2994e6e5ca79ed21d0c6d7176c2f065a17cc.tar.gz
rneovim-ec2c2994e6e5ca79ed21d0c6d7176c2f065a17cc.tar.bz2
rneovim-ec2c2994e6e5ca79ed21d0c6d7176c2f065a17cc.zip
Merge pull request #1977 from jakerr/api-exception
Discard exceptions once they are converted to API errors
-rw-r--r--src/nvim/api/private/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 750b151d10..8083b819d8 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -65,6 +65,7 @@ bool try_end(Error *err)
}
} else if (did_throw) {
api_set_error(err, Exception, "%s", current_exception->value);
+ discard_current_exception();
}
return err->set;