diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 2c4e63b87d..6409fe292a 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -286,7 +286,7 @@ module ActiveRecord protected def table_structure(table_name) returning structure = execute("PRAGMA table_info(#{table_name})") do - raise ActiveRecord::StatementInvalid if structure.empty? + raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty? end end @@ -384,7 +384,7 @@ module ActiveRecord class SQLite3Adapter < SQLiteAdapter # :nodoc: def table_structure(table_name) returning structure = @connection.table_info(table_name) do - raise ActiveRecord::StatementInvalid if structure.empty? + raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty? end end end |