diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-15 16:11:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-15 16:11:15 +0800 |
commit | c48271958f0020bc1a284fbb8b73b4bffa8b8dd9 (patch) | |
tree | 07cc62e1d2fcd7aabde3d9e3fcef92720d86a23c | |
parent | 970f4c06e11deb72ddb600b8313c3a1413c5d46b (diff) | |
parent | ac66d96c5acd4661253aad8015aa245c6788cd45 (diff) | |
download | dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar.gz dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar.bz2 dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar.lz dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar.xz dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.tar.zst dexon-c48271958f0020bc1a284fbb8b73b4bffa8b8dd9.zip |
Merge pull request #2697 from karalabe/CamTosh-patch-1-3
cmd/utils: add space between "to" and filename
-rw-r--r-- | cmd/utils/cmd.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 9e2b14f56..3b521a0e1 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -120,7 +120,7 @@ func ImportChain(chain *core.BlockChain, fn string) error { } } - glog.Infoln("Importing blockchain", fn) + glog.Infoln("Importing blockchain ", fn) fh, err := os.Open(fn) if err != nil { return err @@ -182,7 +182,7 @@ func hasAllBlocks(chain *core.BlockChain, bs []*types.Block) bool { } func ExportChain(blockchain *core.BlockChain, fn string) error { - glog.Infoln("Exporting blockchain to", fn) + glog.Infoln("Exporting blockchain to ", fn) fh, err := os.OpenFile(fn, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, os.ModePerm) if err != nil { return err @@ -191,12 +191,12 @@ func ExportChain(blockchain *core.BlockChain, fn string) error { if err := blockchain.Export(fh); err != nil { return err } - glog.Infoln("Exported blockchain to", fn) + glog.Infoln("Exported blockchain to ", fn) return nil } func ExportAppendChain(blockchain *core.BlockChain, fn string, first uint64, last uint64) error { - glog.Infoln("Exporting blockchain to", fn) + glog.Infoln("Exporting blockchain to ", fn) // TODO verify mode perms fh, err := os.OpenFile(fn, os.O_CREATE|os.O_APPEND|os.O_WRONLY, os.ModePerm) if err != nil { @@ -206,6 +206,6 @@ func ExportAppendChain(blockchain *core.BlockChain, fn string, first uint64, las if err := blockchain.ExportN(fh, first, last); err != nil { return err } - glog.Infoln("Exported blockchain to", fn) + glog.Infoln("Exported blockchain to ", fn) return nil } |