lib/ruby-debug/commands/jump.rb in debugger-1.2.4 vs lib/ruby-debug/commands/jump.rb in debugger-1.3.0
- old
+ new
@@ -21,10 +21,10 @@
if !@match[1]
errmsg "\"jump\" must be followed by a line number\n"
return
end
if !numeric?(@match[1])
- puts "Bad line number: " + @match[1]
+ errmsg "Bad line number: " + @match[1]
return
end
line = @match[1].to_i
line = @state.context.frame_line(0) + line if @match[1][0] == '+' or @match[1][0] == '-'
if line == @state.context.frame_line(0)