about summary refs log tree commit diff
path: root/src/rt/rust_upcall.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-05-31 23:25:13 -0700
committerBrian Anderson <banderson@mozilla.com>2012-05-31 23:47:52 -0700
commit4c8bc19ad2d5b9a51febf916a2a93b07da146385 (patch)
tree279186722b249a2736f754007497b9ff66fab813 /src/rt/rust_upcall.cpp
parente47962f6a9fdbac2054c15fea8953c2338e8e115 (diff)
downloadrust-4c8bc19ad2d5b9a51febf916a2a93b07da146385.tar.gz
rust-4c8bc19ad2d5b9a51febf916a2a93b07da146385.zip
rt: Refactor task failure to go through rust_task_fail
This is the place to but a breakpoint. We will raise SIGINT here
to break into the debugger.
Diffstat (limited to 'src/rt/rust_upcall.cpp')
-rw-r--r--src/rt/rust_upcall.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rt/rust_upcall.cpp b/src/rt/rust_upcall.cpp
index ac11ee7a26b..21df231aee7 100644
--- a/src/rt/rust_upcall.cpp
+++ b/src/rt/rust_upcall.cpp
@@ -116,9 +116,7 @@ extern "C" CDECL void
 upcall_s_fail(s_fail_args *args) {
     rust_task *task = rust_get_current_task();
     LOG_UPCALL_ENTRY(task);
-    LOG_ERR(task, upcall, "upcall fail '%s', %s:%" PRIdPTR,
-            args->expr, args->file, args->line);
-    task->fail();
+    task->fail(args->expr, args->file, args->line);
 }
 
 extern "C" CDECL void