[erlang-bugs] gen_event:notify unexpected behavior

Matthew Dempsky <>
Sat Apr 26 10:19:12 CEST 2008

On Fri, Apr 25, 2008 at 11:13 PM, mog <> wrote:
>   gen_event:notify(debug,"test").
>  ** exception error: bad argument
>      in function  gen_event:send/2

This is documented in the last paragraph of gen_event:notify/2:

              notify will not fail even if the specified  event  manager  does
              not exist, unless it is specified as Name.

Also, exceptions are not included in the return type specification.

More information about the erlang-bugs mailing list