UpdateErr is used to notify Scope of any graph construction errors while creating the operation op.
(op string, err error)
| 163 | // UpdateErr is used to notify Scope of any graph construction errors |
| 164 | // while creating the operation op. |
| 165 | func (s *Scope) UpdateErr(op string, err error) { |
| 166 | if s.err.err == nil { |
| 167 | s.err.err = fmt.Errorf("failed to add operation %q: %v (Stacktrace: %s)", op, err, debug.Stack()) |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | func (s *Scope) uniqueName(name string) string { |
| 172 | count := s.namemap[name] |
no test coverage detected