Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/rust/worker/kill_switch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct Worker {}
impl Worker {
fn error(file: &str, line: u32) -> Result<()> {
Err(KjError::new(
cxx::KjExceptionType::Overloaded,
cxx::KjExceptionType::Failed,
"jsg.Error: This script has been killed.".to_owned(),
)
.with_details(vec![(SCRIPT_KILLED_DETAIL_ID, vec![])])
Expand Down
4 changes: 2 additions & 2 deletions src/rust/worker/test.c++
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ KJ_TEST("kill_switch worker") {
}

auto& e = KJ_ASSERT_NONNULL(exception);
KJ_ASSERT(e.getType() == kj::Exception::Type::OVERLOADED);
KJ_ASSERT(e.getType() == kj::Exception::Type::FAILED);
KJ_ASSERT(e.getDescription() == "jsg.Error: This script has been killed.");
KJ_ASSERT(e.getDetail(SCRIPT_KILLED_DETAIL_ID) != kj::none);
}
Expand Down Expand Up @@ -111,7 +111,7 @@ KJ_TEST("kill_switch worker connect") {
}

auto& e = KJ_ASSERT_NONNULL(exception);
KJ_ASSERT(e.getType() == kj::Exception::Type::OVERLOADED);
KJ_ASSERT(e.getType() == kj::Exception::Type::FAILED);
KJ_ASSERT(e.getDescription() == "jsg.Error: This script has been killed.");
KJ_ASSERT(e.getDetail(SCRIPT_KILLED_DETAIL_ID) != kj::none);
}
Expand Down
Loading