File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ func rootPreRun(*cobra.Command, []string) error {
6767
6868 f , err := os .Create (cpuProfile )
6969 if err != nil {
70- return fmt .Errorf ("unable to create CPU profile file: %v " , err )
70+ return fmt .Errorf ("%w: unable to create CPU profile file" , err )
7171 }
7272 if err := pprof .StartCPUProfile (f ); err != nil {
7373 if err := f .Close (); err != nil {
@@ -101,6 +101,7 @@ func rootPostRun() {
101101 log .Printf ("error while creating mem-profile file: %v" , err )
102102 return
103103 }
104+
104105 defer func () {
105106 if err := f .Close (); err != nil {
106107 log .Printf ("error while closing mem-profile file: %v" , err )
@@ -212,6 +213,6 @@ var versionCmd = &cobra.Command{
212213 Use : "version" ,
213214 Short : "Print rosetta-cli version" ,
214215 Run : func (cmd * cobra.Command , args []string ) {
215- fmt .Println ("v0.5.6 " )
216+ fmt .Println ("v0.5.7 " )
216217 },
217218}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/coinbase/rosetta-cli
33go 1.13
44
55require (
6- github.com/coinbase/rosetta-sdk-go v0.4.8
6+ github.com/coinbase/rosetta-sdk-go v0.4.9
77 github.com/fatih/color v1.9.0
88 github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a
99 github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c
Original file line number Diff line number Diff line change @@ -160,6 +160,8 @@ github.com/coinbase/rosetta-sdk-go v0.4.7 h1:5KFc0CgLMkKamX++hYUFvE58a5/tCn0wSqp
160160github.com/coinbase/rosetta-sdk-go v0.4.7 /go.mod h1:8d4iN4VSGvLUzl+jRQlvYSLyS9TeY0QZebneWouizqU =
161161github.com/coinbase/rosetta-sdk-go v0.4.8 h1:+E1TM4q1c5/x/jE9FPI1IZIbNvUWy4tRRgDPLnKzUV4 =
162162github.com/coinbase/rosetta-sdk-go v0.4.8 /go.mod h1:8d4iN4VSGvLUzl+jRQlvYSLyS9TeY0QZebneWouizqU =
163+ github.com/coinbase/rosetta-sdk-go v0.4.9 h1:Agy5+jrREo4Fa/0Jl0KEOvJDUxaImuCMD0qOxGiUwb4 =
164+ github.com/coinbase/rosetta-sdk-go v0.4.9 /go.mod h1:8d4iN4VSGvLUzl+jRQlvYSLyS9TeY0QZebneWouizqU =
163165github.com/coreos/bbolt v1.3.2 /go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk =
164166github.com/coreos/etcd v3.3.10+incompatible /go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE =
165167github.com/coreos/go-etcd v2.0.0+incompatible /go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk =
You can’t perform that action at this time.
0 commit comments