diff --git a/tsl/profiler/lib/profiler_controller.cc b/tsl/profiler/lib/profiler_controller.cc index 58ee8d738..149aac930 100644 --- a/tsl/profiler/lib/profiler_controller.cc +++ b/tsl/profiler/lib/profiler_controller.cc @@ -45,10 +45,10 @@ absl::Status ProfilerController::Start() { if (status_.ok()) { status = status_ = profiler_->Start(); } else { - status = errors::Aborted("Previous call returned an error."); + status = absl::AbortedError("Previous call returned an error."); } } else { - status = errors::Aborted("Start called in the wrong order"); + status = absl::AbortedError("Start called in the wrong order"); } if (!status.ok()) LOG(ERROR) << status; return status; @@ -61,10 +61,10 @@ absl::Status ProfilerController::Stop() { if (status_.ok()) { status = status_ = profiler_->Stop(); } else { - status = errors::Aborted("Previous call returned an error."); + status = absl::AbortedError("Previous call returned an error."); } } else { - status = errors::Aborted("Stop called in the wrong order"); + status = absl::AbortedError("Stop called in the wrong order"); } if (!status.ok()) LOG(ERROR) << status; return status; @@ -78,10 +78,10 @@ absl::Status ProfilerController::CollectData( if (status_.ok()) { status = status_ = profiler_->CollectData(space); } else { - status = errors::Aborted("Previous call returned an error."); + status = absl::AbortedError("Previous call returned an error."); } } else { - status = errors::Aborted("CollectData called in the wrong order."); + status = absl::AbortedError("CollectData called in the wrong order."); } if (!status.ok()) LOG(ERROR) << status; return status;