Ensure callers get errors when they happen

Previously we silently dropped portions or all of a block when a
duplicate quad is found. We still fail now, but we tell someone.

Fixes #201.
This commit is contained in:
kortschak 2015-01-26 14:53:52 +10:30
parent 9088fe376b
commit 9e378302f5
2 changed files with 10 additions and 5 deletions

View file

@ -55,8 +55,7 @@ func (s *Single) AddQuadSet(set []quad.Quad) error {
Timestamp: time.Now(),
}
}
s.qs.ApplyDeltas(deltas)
return nil
return s.qs.ApplyDeltas(deltas)
}
func (s *Single) RemoveQuad(q quad.Quad) error {