aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/resource_mgr.cc
diff options
context:
space:
mode:
authorGravatar Jianwei Xie <xiejw@google.com>2017-09-13 11:36:30 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-09-13 11:48:47 -0700
commit89ac65008b329db00739a10806d406bcf1adb651 (patch)
tree3723a08f92a20759c642666cd8f14fb581213bb2 /tensorflow/core/framework/resource_mgr.cc
parent762b77373c82a89865d0f7ea21f88602529706f4 (diff)
Improve the error message of container not found.
PiperOrigin-RevId: 168570465
Diffstat (limited to 'tensorflow/core/framework/resource_mgr.cc')
-rw-r--r--tensorflow/core/framework/resource_mgr.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/framework/resource_mgr.cc b/tensorflow/core/framework/resource_mgr.cc
index f79eca5401..78574bc0b1 100644
--- a/tensorflow/core/framework/resource_mgr.cc
+++ b/tensorflow/core/framework/resource_mgr.cc
@@ -160,7 +160,9 @@ Status ResourceMgr::DoLookup(const string& container, TypeIndex type,
tf_shared_lock l(mu_);
const Container* b = gtl::FindPtrOrNull(containers_, container);
if (b == nullptr) {
- return errors::NotFound("Container ", container, " does not exist.");
+ return errors::NotFound("Container ", container,
+ " does not exist. (Could not find resource: ",
+ container, "/", name, ")");
}
auto r = gtl::FindPtrOrNull(*b, {type.hash_code(), name});
if (r == nullptr) {