Update AR.py

Changed default error in decorator to the nid_error (not in directory). Decorator now raises an exception.