Skip to content

Commit 6021274

Browse files
author
lexeyo
committed
cc core: fix an error message in deadlock detector
commit_hash:15592fcd71feede33f7d00a919b2d25bf30c78a4
1 parent 4ab0048 commit 6021274

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/src/engine/deadlock_detector.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ void StateBase::RemoveDependency(const Actor& from, const Actor& to) noexcept {
178178

179179
auto it = std::find(v.begin(), v.end(), &to);
180180
if (it == v.end()) {
181-
utils::AbortWithStacktrace(
182-
fmt::format("Trying to stop waiting while not waiting! {} => {}", ToAssertString(from), ToAssertString(to))
183-
);
181+
utils::AbortWithStacktrace(fmt::format(
182+
"Trying to remove dependency that does not exist! {} => {}",
183+
ToAssertString(from),
184+
ToAssertString(to)
185+
));
184186
}
185187
if (v.size() == 1) {
186188
edges->erase(&from);

0 commit comments

Comments
 (0)