diff options
author | Teddy Wing | 2017-04-29 22:54:27 +0200 |
---|---|---|
committer | Teddy Wing | 2017-04-29 22:54:27 +0200 |
commit | 56a002d2681431b34be36cf7247dc41a313601d9 (patch) | |
tree | 0fa8a00f7b253f1c1d6554873238e48b89c8ac19 /lib | |
parent | 575141e4efc770a4207eb5d905819d4017731f65 (diff) | |
download | dbshell-rails-56a002d2681431b34be36cf7247dc41a313601d9.tar.bz2 |
Rename `InvalidDatabaseAdapter` to `UnsupportedDatabaseAdapter`
Tried this out with MySQL, and got this error since I haven't integrated
it yet. It struck me that "Invalid" doesn't make any sense. Really it's
something that is possible to do but that our gem doesn't support, so we
should be clearer about that fact.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbshell/client/database.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dbshell/client/database.rb b/lib/dbshell/client/database.rb index 08fd8fe..86cbfef 100644 --- a/lib/dbshell/client/database.rb +++ b/lib/dbshell/client/database.rb @@ -11,7 +11,7 @@ module DBShell when 'postgresql' DBShell::Client::Postgres else - raise InvalidDatabaseAdapter + raise UnsupportedDatabaseAdapter end end @@ -23,6 +23,6 @@ module DBShell end - class InvalidDatabaseAdapter < StandardError; end + class UnsupportedDatabaseAdapter < StandardError; end end end |