Skip to content

Commit

Permalink
Fix: do not try to print not existing item
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Mar 3, 2017
1 parent 923c2d2 commit 3572e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ddb/get_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ func (i itemType) getStringValue(key string) *fieldValue {

func printItem(item itemType, kd *keyDesc) {
if len(item) == 0 {
fmt.Println("No such item")
fmt.Println(tcolor.Colorize("Item not found", tcolor.New().Foreground(tcolor.BrightRed)))
return
}

maxFieldNameSize := 0
Expand Down

0 comments on commit 3572e46

Please sign in to comment.