looking_glass icon indicating copy to clipboard operation
looking_glass copied to clipboard

Error if try trace non existing application

Open vkatsuba opened this issue 4 years ago • 3 comments

Error:

1> lg:trace({app, 'bla-bla'}).
** exception error: no match of right hand side value undefined
     in function  lg:flatten/2 (/some-app/_build/default/lib/looking_glass/src/lg.erl, line 91)
     in call from lg:do_trace/4 (/some-app/_build/default/lib/looking_glass/src/lg.erl, line 78)
2> lg:trace({app, 'bla-bla'}).
** exception error: no match of right hand side value 
                    {error,{already_started,<0.296.0>}}
     in function  lg:do_trace/4 (/some-app/_build/default/lib/looking_glass/src/lg.erl, line 69)

vkatsuba avatar Apr 15 '21 13:04 vkatsuba

What outcome are you looking for? There isn't much LG can do with an app that does not exist (isn't loaded?)

michaelklishin avatar Apr 15 '21 13:04 michaelklishin

We can probably make it a little more user friendly.

lhoguin avatar Apr 15 '21 13:04 lhoguin

What outcome are you looking for? There isn't much LG can do with an app that does not exist (isn't loaded?)

To be honest, I'm don't expect anything :upside_down_face:, when I was play with this amazing lib just was detect this behavior and as result was provided info about it. So, up to you.

Regards, --V

vkatsuba avatar Apr 15 '21 13:04 vkatsuba