lib/event: fix and unify error message

Signed-off-by: Ruoyu <liangry@ucweb.com>