We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2442dda commit 4da6fc2Copy full SHA for 4da6fc2
lib/puppet/util.rb
@@ -523,7 +523,11 @@ def thinmark
523
524
module_function :thinmark
525
526
- PUPPET_STACK_INSERTION_FRAME = /.*puppet_stack\.rb.*in.*`stack'/
+ PUPPET_STACK_INSERTION_FRAME = if RUBY_VERSION >= '3.4'
527
+ /.*puppet_stack\.rb.*in.*'Puppet::Pops::PuppetStack\.stack'/
528
+ else
529
+ /.*puppet_stack\.rb.*in.*`stack'/
530
+ end
531
532
# utility method to get the current call stack and format it to a human-readable string (which some IDEs/editors
533
# will recognize as links to the line numbers in the trace)
0 commit comments