Skip to content

Commit

Permalink
Modify panic message for list.slice
Browse files Browse the repository at this point in the history
  • Loading branch information
gongdo committed Jun 1, 2018
1 parent c5f40b5 commit ae38335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list.go
Expand Up @@ -286,6 +286,6 @@ func slice(list interface{}, indices ...interface{}) interface{} {

return l2.Slice(start, end).Interface()
default:
panic(fmt.Sprintf("Cannot find first on type %s", tp))
panic(fmt.Sprintf("list should be type of slice or array but %s", tp))
}
}

0 comments on commit ae38335

Please sign in to comment.