Added error macros