From 9330579dcfaf948b2fa3dbff2836b37acb4c666e Mon Sep 17 00:00:00 2001 From: Jake Kerr Date: Thu, 12 Feb 2015 20:04:09 +0900 Subject: Discard exceptions once they are converted to API errors Fixes: #1976 --- src/nvim/api/private/helpers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/api/private/helpers.c') 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; -- cgit