Changed dump of error in event support to check debug flag.