I think that there is something wrong with my eyes, I didn't see where you
threw that.



*Oren Eini*

CEO


Mobile: + 972-52-548-6969

Office:  + 972-4-622-7811

Fax:      + 972-153-4622-7811




On Thu, May 22, 2014 at 1:44 PM, ReginaBricker <notifications@github.com>wrote:

> In Raven.Database/Indexing/Index.cs:
>
> > @@ -432,7 +432,11 @@ protected void Write(Func<RavenIndexWriter, Analyzer, IndexingWorkStats, Indexed
> >  						}
> >  						catch (Exception e)
> >  						{
> > -							context.AddError(indexId, indexDefinition.Name, null, e.ToString(), "Write");
> > +                            var invalidSpatialShapeException = e as InvalidSpatialShapeException;
> > +                            var invalidDocId = (invalidSpatialShapeException == null) ?
> > +                                                        null :
> > +                                                        invalidSpatialShapeException.InvalidDocumentId;
> > +                            context.AddError(indexId, indexDefinition.Name, invalidDocId, e.ToString(), "Write");
>
> we are using document Id from exception in here - to show the document Id
> in server-side errors
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ayende/ravendb/pull/951/files#r12944020>
> .
>