Add @error variable instantiation

AS was warning about this, so added initialization of @error