Handle errors when attempting to (un)subscribe to newsletters on Special:Newsletters
Newsletter extension allows to manage and subscribe to newsletters on MediaWiki.
Currently, the click handler does not handle errors. The API already returns errors so your task is to add error handling code to this event handler.
See https://phabricator.wikimedia.org/T115874 for details.