Skip to content

Commit

Permalink
Fixed method name in the warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jul 30, 2014
1 parent a2c33b9 commit 0a8f643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ruby/yast/ops.rb
Expand Up @@ -91,10 +91,10 @@ def self.get (object, indexes, default=nil, skip_frames = 0)
return block_given? ? yield : default
end
when ::NilClass
Yast.y2milestone skip_frames, "Builtin index called on nil."
Yast.y2milestone skip_frames, "Ops.get called on nil."
return block_given? ? yield : default
else
Yast.y2warning skip_frames, "Builtin index called on wrong type #{res.class}"
Yast.y2warning skip_frames, "Ops.get called on wrong type #{res.class}"
return block_given? ? yield : default
end
end
Expand Down

0 comments on commit 0a8f643

Please sign in to comment.