[ticket/11279] Log error in console

PHPBB-11279