mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/scwallet: fix error log warning
This commit is contained in:
parent
b82300a5b9
commit
e498e2d0c0
1 changed files with 2 additions and 3 deletions
|
|
@ -1153,7 +1153,6 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
|
||||||
func setSmartCard(ctx *cli.Context, cfg *node.Config) {
|
func setSmartCard(ctx *cli.Context, cfg *node.Config) {
|
||||||
// No support for windows, currently
|
// No support for windows, currently
|
||||||
if runtime.GOOS != "windows" {
|
if runtime.GOOS != "windows" {
|
||||||
fmt.Println("setting smartcard")
|
|
||||||
cfg.SmartCard = true
|
cfg.SmartCard = true
|
||||||
|
|
||||||
// Use the platform default unless specified on the command line
|
// Use the platform default unless specified on the command line
|
||||||
|
|
@ -1162,10 +1161,10 @@ func setSmartCard(ctx *cli.Context, cfg *node.Config) {
|
||||||
if fi.Mode()&os.ModeType == os.ModeSocket {
|
if fi.Mode()&os.ModeType == os.ModeSocket {
|
||||||
cfg.SmartCardDaemonPath = ctx.GlobalString(SmartCardFlag.Name)
|
cfg.SmartCardDaemonPath = ctx.GlobalString(SmartCardFlag.Name)
|
||||||
} else {
|
} else {
|
||||||
log.Error(ctx.GlobalString(SmartCardFlag.Name), "doesn't seem to be a socket file")
|
log.Error(fmt.Sprintf("%s doesn't seem to be a socket file", ctx.GlobalString(SmartCardFlag.Name)))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log.Error(ctx.GlobalString(SmartCardFlag.Name), "doesn't exist")
|
log.Error(fmt.Sprintf("%s doesn't exist", ctx.GlobalString(SmartCardFlag.Name)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue