Skip to content

Commit 26ab8dd

Browse files
committed
Show location for the warning and also add the warning: prefix
1 parent 64f138a commit 26ab8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/truffle/regexp_operations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def self.match_in_region_tregex(re, str, from, to, at_start, start)
117117
end
118118
if bail_out
119119
if WARN_TRUFFLE_REGEX_FALLBACK
120-
warn "match_in_region_tregex(#{re.inspect}, #{str.inspect}@#{str.encoding}, #{from}, #{to}, #{at_start}, #{encoding_conversion}, #{start}) can't be run as a Truffle regexp and fell back to Joni"
120+
warn "match_in_region_tregex(#{re.inspect}, #{str.inspect}@#{str.encoding}, #{from}, #{to}, #{at_start}, #{encoding_conversion}, #{start}) can't be run as a Truffle regexp and fell back to Joni", uplevel: 1
121121
end
122122
return Primitive.regexp_match_in_region(re, str, from, to, at_start, start)
123123
elsif regex_result.isMatch

0 commit comments

Comments
 (0)