diff options
author | Asim Shankar <ashankar@google.com> | 2017-05-16 13:08:04 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-05-16 13:11:36 -0700 |
commit | fe41d05e7c8343ed53fc788d6c312792b390f679 (patch) | |
tree | ba75a55e572faa54391d7533d9ccd6335e56e671 /.gitignore | |
parent | d0b47889fb3a776dd6cf0a3c8360be9f84e2cbbb (diff) |
Go: Keep errors in Go.
Helps with #9931
- graph.go: Return a nil Operation if the operation creation failed.
This ensures that accidental usage of the nil operation results in
a panic/stacktrace purely in Go (nil pointer dereference) instead
of a SIGSEGV in the underlying C API.
- operation.go: Attempt to help in the developer find the root cause
of the nil pointer dereference with a chattier panic message.
PiperOrigin-RevId: 156220056
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions