Add descriptive error message in FunctionLibraryRuntimeImpl
PiperOrigin-RevId: 264605227
diff --git a/tensorflow/core/common_runtime/function.cc b/tensorflow/core/common_runtime/function.cc
index ba58d04..d8e68b7 100644
--- a/tensorflow/core/common_runtime/function.cc
+++ b/tensorflow/core/common_runtime/function.cc
@@ -1103,7 +1103,7 @@
std::vector<Tensor>* rets,
DoneCallback done) {
if (opts.cancellation_manager && opts.cancellation_manager->IsCancelled()) {
- done(errors::Cancelled(""));
+ done(errors::Cancelled("Function was cancelled before it was started"));
return;
}
Options run_opts = opts;