summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index 317d69c214..176659b8ee 100644
--- a/error.c
+++ b/error.c
@@ -532,7 +532,7 @@ rb_bug(const char *fmt, ...)
const char *file = NULL;
int line = 0;
- if (GET_THREAD()) {
+ if (GET_EC()) {
file = rb_source_loc(&line);
}
@@ -547,7 +547,7 @@ rb_bug_context(const void *ctx, const char *fmt, ...)
const char *file = NULL;
int line = 0;
- if (GET_THREAD()) {
+ if (GET_EC()) {
file = rb_source_loc(&line);
}