summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.c b/error.c
index 26c16328df..878b3c3350 100644
--- a/error.c
+++ b/error.c
@@ -40,6 +40,7 @@ err_snprintf(buf, len, fmt, args)
{
int n;
+ ruby_set_current_source();
if (!ruby_sourcefile) {
vsnprintf(buf, len, fmt, args);
return;