|
|
@ -23,7 +23,7 @@ export default { |
|
|
|
registerAdapter: function(adapter) { |
|
|
|
registerAdapter: function(adapter) { |
|
|
|
const wrapped = wrapAdapter(adapter); |
|
|
|
const wrapped = wrapAdapter(adapter); |
|
|
|
|
|
|
|
|
|
|
|
if (getAdapter(wrapped.name)) { |
|
|
|
if (getAdapter(wrapped.name, true)) { |
|
|
|
throw new PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` + |
|
|
|
throw new PawSQLiteError(`An adapter with the name: ${ wrapped.name } ` + |
|
|
|
`Already exists`); |
|
|
|
`Already exists`); |
|
|
|
} |
|
|
|
} |
|
|
|