Skip to content

Commit

Permalink
fail early
Browse files Browse the repository at this point in the history
  • Loading branch information
teou committed Jan 31, 2018
1 parent 60c2d9e commit 18c467c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func (g *Graph) find(name string) (*Object, bool) {
}
ret, ok := f.(*Object)
if !ok {
g.named.Delete(name)
//g.named.Delete(name)
panic(fmt.Sprintf("%s in graph is not a *Object, should not happen!", name))
return nil, false
} else {
return ret, true
Expand Down

0 comments on commit 18c467c

Please sign in to comment.