Add `error` argument to example of `error` event

Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>