diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/oracle_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oracle_adapter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb index 01408933f4..b44510fd7d 100644 --- a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb @@ -676,13 +676,14 @@ rescue LoadError # OCI8 driver is unavailable. module ActiveRecord # :nodoc: class Base + @@oracle_error_message = "Oracle/OCI libraries could not be loaded: #{$!.to_s}" def self.oracle_connection(config) # :nodoc: # Set up a reasonable error message - raise LoadError, "Oracle/OCI libraries could not be loaded." + raise LoadError, @@oracle_error_message end def self.oci_connection(config) # :nodoc: # Set up a reasonable error message - raise LoadError, "Oracle/OCI libraries could not be loaded." + raise LoadError, @@oracle_error_message end end end |