Added error reporting macro.