aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-07 13:06:06 +0200
committerKim Alvefur <zash@zash.se>2017-04-07 13:06:06 +0200
commitfd4b07e6dd3d848364ff81520dd6bbfffdce20d1 (patch)
treeb1ba64f234dfffacfb6be5f822f1a17eb2d00e8d /tools/migration
parent15698fba15b2462a8d5cbd8ee83f51ed31a70cbf (diff)
downloadprosody-fd4b07e6dd3d848364ff81520dd6bbfffdce20d1.tar.gz
prosody-fd4b07e6dd3d848364ff81520dd6bbfffdce20d1.zip
migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?)
Diffstat (limited to 'tools/migration')
-rw-r--r--tools/migration/prosody-migrator.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua
index 6cff9f67..1219d891 100644
--- a/tools/migration/prosody-migrator.lua
+++ b/tools/migration/prosody-migrator.lua
@@ -77,13 +77,8 @@ function load_store_handler(name)
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