Merge pull request #1977 from jakerr/api-exception

Discard exceptions once they are converted to API errors
This commit is contained in:
Thiago de Arruda
2015-02-12 09:16:55 -03:00

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;