Skip to content
Snippets Groups Projects
Commit 75fed483 authored by benjamin's avatar benjamin
Browse files

get the stack trace on duplicate prefix

parent cf7a1a73
No related tags found
1 merge request!649fix stack trace on duplicate prefix error
......@@ -331,7 +331,7 @@ func (v *kv) Prefix(prefix string) (KV, error) {
// Reject duplicate prefixes
if v.HasPrefix(prefix) {
return nil, DuplicatePrefixErr
return nil, errors.WithStack(DuplicatePrefixErr)
}
newPrefixMap := make(map[string]int)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment