Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
  • Loading branch information
keks committed Oct 15, 2017
1 parent 64faa74 commit f96e6ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/commands/cat.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var CatCmd = &cmds.Command{
defer re.Close()
for {
v, err := res.Next()
if cmds.HandleError(err, res, re) {
if !cmds.HandleError(err, res, re) {
break
}

Expand Down
2 changes: 1 addition & 1 deletion core/commands/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The output is:
var errors bool
for {
v, err := res.Next()
if cmds.HandleError(err, res, re) {
if !cmds.HandleError(err, res, re) {
break
}

Expand Down
2 changes: 1 addition & 1 deletion core/commands/stat.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Example:
fmt.Fprintln(os.Stdout, "Total Up Total Down Rate Up Rate Down")
for {
v, err := res.Next()
if cmds.HandleError(err, res, re) {
if !cmds.HandleError(err, res, re) {
break
}

Expand Down

0 comments on commit f96e6ce

Please sign in to comment.