Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
b7ce80c0
Commit
b7ce80c0
authored
Apr 22, 2018
by
Xiaoyi Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix key rename command output error
License: MIT Signed-off-by:
Xiaoyi Wang
<
wangxiaoyi@hyperchain.cn
>
parent
8b383da2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
core/commands/keystore.go
core/commands/keystore.go
+5
-1
No files found.
core/commands/keystore.go
View file @
b7ce80c0
...
...
@@ -306,7 +306,11 @@ var keyRenameCmd = &cmds.Command{
},
Marshalers
:
cmds
.
MarshalerMap
{
cmds
.
Text
:
func
(
res
cmds
.
Response
)
(
io
.
Reader
,
error
)
{
k
,
ok
:=
res
.
Output
()
.
(
*
KeyRenameOutput
)
v
,
err
:=
unwrapOutput
(
res
.
Output
())
if
err
!=
nil
{
return
nil
,
err
}
k
,
ok
:=
v
.
(
*
KeyRenameOutput
)
if
!
ok
{
return
nil
,
fmt
.
Errorf
(
"expected a KeyRenameOutput as command result"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment