> @@ -64,6 +51,36 @@ def local_host
>          "127.0.0.1"
>        end
>  
> +      # Error rescued by middleware.
> +      #
> +      # @return [Exception or NilClass]
> +      def error
> +        @middleware.error
> +      end
> +
> +      # Check if exception catcher is enabled.
> +      #
> +      # @return [Boolean] true if exception catcher is and can be enabled, 
> false otherwise.
> +      def catch_exceptions
> +        @catch_exceptions = true if @catch_exceptions.nil?

Makes sense, the only thing I don't like about this is that if default 
behaviour is invoked (i.e. `show_exceptions` is `false`), then 
`Watir::Rails.ignore_rails_exceptions` would return `nil`, while should return 
`false`.

```ruby
!!@ignore_rails_exceptions
```
might work at the end

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-rails/pull/2/files#r4342748
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to