Comparison

tools/migration/prosody-migrator.lua @ 8065:36d9c1226fbc

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 08 Apr 2017 00:48:15 +0200
parent 8062:739bb455cafd
child 10003:4d702f0c6273
comparison
equal deleted inserted replaced
8060:71bdfdf6565d 8065:36d9c1226fbc
75 print("Error: "..name.." store type not specified in the config file"); 75 print("Error: "..name.." store type not specified in the config file");
76 return false; 76 return false;
77 else 77 else
78 local ok, err = pcall(require, "migrator."..store_type); 78 local ok, err = pcall(require, "migrator."..store_type);
79 if not ok then 79 if not ok then
80 if package.loaded["migrator."..store_type] then 80 print(("Error: Failed to initialize '%s' store:\n\t%s")
81 print(("Error: Failed to initialize '%s' store:\n\t%s") 81 :format(name, err));
82 :format(name, err));
83 else
84 print(("Error: Unrecognised store type for '%s': %s")
85 :format(from_store, store_type));
86 end
87 return false; 82 return false;
88 end 83 end
89 end 84 end
90 return true; 85 return true;
91 end 86 end