Fixing global name 'ERROR' is not defined, which was causing deal creation to fail.  Refs #191.