print error for event listeners