Commit 676bcf63 authored by Christian Hergert's avatar Christian Hergert
Browse files

threading: use alternate message for object destruction

This makes tracking down the exact issue during destruction easier.
parent 565a3af6
......@@ -1547,15 +1547,21 @@ ide_task_propagate_locked (IdeTask *self,
*error = g_error_copy (priv->result->u.v_error);
}
else if ((priv->check_cancellable && g_cancellable_is_cancelled (priv->cancellable)) ||
priv->result->type == IDE_TASK_RESULT_CANCELLED ||
(IDE_IS_OBJECT (priv->source_object) &&
ide_object_in_destruction (IDE_OBJECT (priv->source_object))))
priv->result->type == IDE_TASK_RESULT_CANCELLED)
{
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_CANCELLED,
"The operation was cancelled");
}
else if (IDE_IS_OBJECT (priv->source_object) &&
ide_object_in_destruction (IDE_OBJECT (priv->source_object)))
{
g_set_error (error,
G_IO_ERROR,
G_IO_ERROR_CANCELLED,
"The object was destroyed while the task executed");
}
else if (priv->result->type != expected_type)
{
g_set_error (error,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment