Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #129 from cldwalker/fix-prints-in-catch
Browse files Browse the repository at this point in the history
Fix prints in catch
  • Loading branch information
cldwalker committed May 27, 2014
2 parents 8eb0ff6 + 8f88fac commit c16f156
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ruby-debug/commands/catchpoint.rb
Expand Up @@ -24,15 +24,15 @@ def execute
print "Warning #{excn} is not known to be a Class\n"
end
Debugger.add_catchpoint(excn)
print "Catch exception %s.\n", excn
print "Catch exception #{excn}.\n"
end
elsif @match[2] != 'off'
errmsg "Off expected. Got %s\n", @match[2]
errmsg "Off expected. Got #{@match[2]}\n"
elsif Debugger.catchpoints.member?(excn)
Debugger.catchpoints.delete(excn)
print "Catch for exception %s removed.\n", excn
print "Catch for exception #{excn} removed.\n"
else
errmsg "Catch for exception %s not found.\n", excn
errmsg "Catch for exception #{excn} not found.\n"
end
end

Expand Down

0 comments on commit c16f156

Please sign in to comment.