modified error form so that it can be used as an error notifier for any object passed to it