mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 22:43:47 +00:00
Minor Fixes
This commit is contained in:
parent
00e51a99c0
commit
388b68cd05
1 changed files with 5 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ func (c *AttachCommand) Run(args []string) int {
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
args = append(args, "")
|
args = append(args, "")
|
||||||
}
|
}
|
||||||
if args[0] != "" && string(args[0][0:2]) == "--" {
|
if args[0] != "" && strings.HasPrefix(args[0], "--") {
|
||||||
if err := flags.Parse(args); err != nil {
|
if err := flags.Parse(args); err != nil {
|
||||||
c.UI.Error(err.Error())
|
c.UI.Error(err.Error())
|
||||||
return 1
|
return 1
|
||||||
|
|
@ -84,7 +84,10 @@ func (c *AttachCommand) Run(args []string) int {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.remoteConsole()
|
if err := c.remoteConsole(); err != nil {
|
||||||
|
c.UI.Error(err.Error())
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue