Skip to content

Commit

Permalink
Merge pull request odeke-em#605 from thiell/master
Browse files Browse the repository at this point in the history
edit-desc: fix error handling to get proper return code
  • Loading branch information
Emmanuel T Odeke committed Mar 19, 2016
2 parents 2334708 + dd1ed0e commit 062afd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (g *Commands) EditDescription(byId bool) (composedErr error) {
for kv := range kvChan {
file, ok := kv.value.(*File)
if !ok {
g.log.LogErrf("%s: %s\n", kv.key, kv.value)
composedErr = reComposeError(composedErr, fmt.Sprintf("%s: %s", kv.key, kv.value))
continue
}

Expand All @@ -79,5 +79,5 @@ func (g *Commands) EditDescription(byId bool) (composedErr error) {
}
}

return
return composedErr
}

0 comments on commit 062afd4

Please sign in to comment.