return the subscript error code when it is non-zero