diff --git a/core/commands/publish.go b/core/commands/publish.go index 2b98e8f08f9..4686d7f40b6 100644 --- a/core/commands/publish.go +++ b/core/commands/publish.go @@ -117,7 +117,13 @@ Publish an to another public key (not implemented): return } - output, err := publish(ctx, n, k, path.Path(pstr), popts) + pth, err := path.ParsePath(pstr) + if err != nil { + res.SetError(err, cmds.ErrNormal) + return + } + + output, err := publish(ctx, n, k, pth, popts) if err != nil { res.SetError(err, cmds.ErrNormal) return