Skip to content
Browse files

Plug require_optionally for a random change in the error message styl…

…e for 1.9.3p0
  • Loading branch information...
1 parent 44fb83a commit ec40cd26e1c6fd21a5cb85de63dbf4da75070974 @kyledrake committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/wrong/chunk.rb
View
2 lib/wrong/chunk.rb
@@ -6,7 +6,7 @@ def require_optionally(library)
begin
require library
rescue LoadError => e
- raise e unless e.message == "no such file to load -- #{library}"
+ raise e unless e.message == "no such file to load -- #{library}" || e.message == "cannot load such file -- #{library}"
end
end

0 comments on commit ec40cd2

Please sign in to comment.
Something went wrong with that request. Please try again.