Discard exceptions once they are converted to API errors

Fixes: #1976
This commit is contained in:
Jake Kerr 2015-02-12 20:04:09 +09:00
parent f1f1f711c7
commit 9330579dcf

View File

@ -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;