Mercurial > prosody-hg
diff tools/migration/prosody-migrator.lua @ 8062:739bb455cafd
migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 07 Apr 2017 13:06:06 +0200 |
| parents | 1e1c18012048 |
| children | 4d702f0c6273 |
line wrap: on
line diff
--- a/tools/migration/prosody-migrator.lua Tue Apr 04 18:46:51 2017 +0200 +++ b/tools/migration/prosody-migrator.lua Fri Apr 07 13:06:06 2017 +0200 @@ -77,13 +77,8 @@ else local ok, err = pcall(require, "migrator."..store_type); if not ok then - if package.loaded["migrator."..store_type] then - print(("Error: Failed to initialize '%s' store:\n\t%s") - :format(name, err)); - else - print(("Error: Unrecognised store type for '%s': %s") - :format(from_store, store_type)); - end + print(("Error: Failed to initialize '%s' store:\n\t%s") + :format(name, err)); return false; end end
