Skip to content

Commit

Permalink
Add caller info for the eval'd code.
Browse files Browse the repository at this point in the history
Not actually necessary to fix the warning, because the eval'd frame is
skipped by the logger, but nicer in case we need to look at full
backtraces.
  • Loading branch information
mvidner committed Jul 30, 2014
1 parent 0a8f643 commit fd5e65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby/yast/ops.rb
Expand Up @@ -45,7 +45,7 @@ module Ops
]

Ops::SHORTCUT_TYPES.each do |type|
eval <<END
eval <<END, binding, __FILE__, __LINE__ + 1
def self.get_#{type}(object, indexes, default=nil, &block)
Yast::Convert.to_#{type} get(object, indexes, default, 1, &block)
end
Expand Down

0 comments on commit fd5e65e

Please sign in to comment.