diff options
author | Sukriti Ramesh <sukritiramesh@google.com> | 2018-01-04 10:24:33 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-04 10:28:09 -0800 |
commit | 6f831a2bfb438e3342c0a1099afa89a4da6d63b2 (patch) | |
tree | fef70606cd71ac369375b2a014ac4db7cfba0fa4 /tensorflow/contrib/session_bundle | |
parent | a7240342d826d3abf38350aec86ff7ad09ed569d (diff) |
Expand error-message when a valid export is not found at the specified export location in bundle-shim.
PiperOrigin-RevId: 180814251
Diffstat (limited to 'tensorflow/contrib/session_bundle')
-rw-r--r-- | tensorflow/contrib/session_bundle/bundle_shim.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tensorflow/contrib/session_bundle/bundle_shim.cc b/tensorflow/contrib/session_bundle/bundle_shim.cc index a367ea059c..4fc36d85ed 100644 --- a/tensorflow/contrib/session_bundle/bundle_shim.cc +++ b/tensorflow/contrib/session_bundle/bundle_shim.cc @@ -371,9 +371,15 @@ Status LoadSessionBundleOrSavedModelBundle( return LoadSavedModelFromLegacySessionBundlePath( session_options, run_options, export_dir, saved_model_bundle); } - return Status(error::Code::NOT_FOUND, - "Session bundle or SavedModel bundle not found at specified " - "export location"); + return Status( + error::Code::NOT_FOUND, + strings::StrCat( + "Specified file path does not appear to contain a:\n" + "- Session bundle (should have a file called `export.meta`)\n" + "- or, SavedModel bundle (should have a file called " + "`saved_model.pb`)\n" + "Specified file path: ", + export_dir)); } } // namespace serving |