diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2023-05-03 13:48:18 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-05-23 10:05:47 +0900 |
commit | b8bf0a52723322e469e94a4cb96286fd48e754ab (patch) | |
tree | 0cd6893dcd0d6758fb1a4ca3a45e264475e9660e /lib | |
parent | f890345c03dc48072167df4bce45bc506dba2a1d (diff) |
[ruby/syntax_suggest] Fix warning message
The env var DEBUG does not work to produce detailed output. It is SYNTAX_SUGGEST_DEBUG. It was changed as part of the dead_end to syntax_suggest migration for Ruby 3.2
https://github.com/ruby/syntax_suggest/commit/c41da7aab7
Diffstat (limited to 'lib')
-rw-r--r-- | lib/syntax_suggest/api.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/syntax_suggest/api.rb b/lib/syntax_suggest/api.rb index ad8f641dbf..74e53c2563 100644 --- a/lib/syntax_suggest/api.rb +++ b/lib/syntax_suggest/api.rb @@ -78,7 +78,7 @@ module SyntaxSuggest code_lines: search.code_lines ).call rescue Timeout::Error => e - io.puts "Search timed out SYNTAX_SUGGEST_TIMEOUT=#{timeout}, run with DEBUG=1 for more info" + io.puts "Search timed out SYNTAX_SUGGEST_TIMEOUT=#{timeout}, run with SYNTAX_SUGGEST_DEBUG=1 for more info" io.puts e.backtrace.first(3).join($/) end |