looking_glass
looking_glass copied to clipboard
Error if try trace non existing application
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)
What outcome are you looking for? There isn't much LG can do with an app that does not exist (isn't loaded?)
We can probably make it a little more user friendly.
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