update error() to report()