Changeset

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 8061:ef671d337577
children 8063:605fa6bfafd1
files tools/migration/prosody-migrator.lua
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
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