Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tsl/profiler/lib/profiler_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,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;
Expand All @@ -59,10 +59,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;
Expand All @@ -76,10 +76,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;
Expand Down
Loading