bt2: make bt2.Error wrap current thread's error
[babeltrace.git] / src / bindings / python / bt2 / bt2 / native_bt_graph.i
index ee32e17fc62fb02c0da6b7c2894c20e831f4caa0..c592452dde11bbfb63d4ca26a93114fe59ad7794 100644 (file)
@@ -145,7 +145,7 @@ static bt_graph_listener_func_status port_added_listener(
        py_res = PyObject_CallFunction(py_callable, "(OiOi)",
                py_component_ptr, component_class_type, py_port_ptr, port_type);
        if (!py_res) {
-               loge_exception();
+               loge_exception("Graph's port added listener (Python)");
                PyErr_Clear();
                status = __BT_FUNC_STATUS_ERROR;
                goto end;
@@ -390,7 +390,7 @@ bt_graph_listener_func_status ports_connected_listener(
                py_downstream_component_ptr, downstream_component_class_type,
                py_downstream_port_ptr);
        if (!py_res) {
-               loge_exception();
+               loge_exception("Graph's port connected listener (Python)");
                PyErr_Clear();
                status = __BT_FUNC_STATUS_ERROR;
                goto end;
This page took 0.024079 seconds and 4 git commands to generate.