Skip to content

Commit

Permalink
Don't depend directly on MRI error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed May 1, 2012
1 parent f3477eb commit ce79875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/results/silent_script.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<li>z</li>
</ul>
<h1>I can catch errors!</h1>
Oh no! "undefined method `silly' for String:Class" happened!
Oh no! "foo" happened!
<p>
"false" is:
false
Expand Down
4 changes: 2 additions & 2 deletions test/templates/silent_script.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
%li= i
%h1 I can catch errors!
- begin
- String.silly
- rescue NameError => e
- raise "foo"
- rescue RuntimeError => e
= "Oh no! \"#{e}\" happened!"
%p
"false" is:
Expand Down

0 comments on commit ce79875

Please sign in to comment.