dolthub/dolt
`ExistingRefError.Error()` omits the ref name and type
Offen
#11.434 geöffnet am 06.08.2026
bad error messagegood first issueversion control
Repository-Metriken
- Stars
- (15.227 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 21h) (58 gemergte PRs in 30 T)
Beschreibung
doltdb.ExistingRefError is returned when a caller-provided name collides with an existing ref. Its Error() explicitly returns a "already exists", a bare string.
The type carries a Ref field that identifies the conflict. Branch creation already recovers this detail out of band, but tag and workspaces do not.
Error() should include the ref, for example: ref 'refs/heads/x' already exists. Updating 'Error()` will change the message tag and workspace callers and test assert against, so they'll have to be updated with their own wrappers.