mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 05:48:17 +00:00
Merge pull request #1977 from jakerr/api-exception
Discard exceptions once they are converted to API errors
This commit is contained in:
@@ -65,6 +65,7 @@ bool try_end(Error *err)
|
|||||||
}
|
}
|
||||||
} else if (did_throw) {
|
} else if (did_throw) {
|
||||||
api_set_error(err, Exception, "%s", current_exception->value);
|
api_set_error(err, Exception, "%s", current_exception->value);
|
||||||
|
discard_current_exception();
|
||||||
}
|
}
|
||||||
|
|
||||||
return err->set;
|
return err->set;
|
||||||
|
Reference in New Issue
Block a user