# HG changeset patch # User Kim Alvefur # Date 1491563166 -7200 # Node ID 739bb455cafd275bb12e31ce493a51686173dd26 # Parent ef671d3375779e23439613e641f2c3f535c51015 migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?) diff -r ef671d337577 -r 739bb455cafd tools/migration/prosody-migrator.lua --- 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