improved but not ideal.

what if we hint based on current x object domain, if they differ you
can say that it's from a different thread... also hint on how to fix,
maybe a wiki page that we show the link there.

On Sun, Dec 4, 2016 at 10:55 PM, Jean-Philippe ANDRÉ <j...@videolan.org> wrote:
> jpeg pushed a commit to branch master.
>
> http://git.enlightenment.org/core/efl.git/commit/?id=c6dcf3dda448c422bd556834b336f7fdb9296097
>
> commit c6dcf3dda448c422bd556834b336f7fdb9296097
> Author: Jean-Philippe Andre <jp.an...@samsung.com>
> Date:   Mon Dec 5 09:46:55 2016 +0900
>
>     eo: Make error message less nebulous
>
>     When writing this ERR log I thought about "thread" (it's really
>     the keyword here) but eventually reworded to "context". Let's be
>     clearer about the possible issue here.
> ---
>  src/lib/eo/eo.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
> index dd6cff6..37c2a4c 100644
> --- a/src/lib/eo/eo.c
> +++ b/src/lib/eo/eo.c
> @@ -1662,7 +1662,8 @@ err_obj:
>  err:
>     if (!data) return EINA_FALSE;
>     ERR("Object %p is not a valid object in this context: object domain: %d, "
> -       "current domain: %d, local domain: %d, available domains: [%s %s %s 
> %s]",
> +       "current domain: %d, local domain: %d, available domains: [%s %s %s 
> %s]."
> +       " Are you trying to access this object from another thread?",
>         eo_id, (int)domain,
>         (int)data->domain_stack[data->stack_top], (int)data->local_domain,
>         (data->tables[0]) ? "0" : " ", (data->tables[1]) ? "1" : " ",
>
> --
>
>



-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890

------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to