bad error messagegood first issueversion control
仓库指标
- 星标
- (15,227 个星标)
- PR 合并指标
- (平均合并 2天 21小时) (30 天内合并 58 个 PR)
描述
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.