aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration/migrator/prosody_files.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-03 00:58:09 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-03 00:58:09 +0100
commit8f23723f94af0fd03541b33e0a4e647dfc743d00 (patch)
treec714d4a7da3a44ffa9e988531b178b8c0693d73b /tools/migration/migrator/prosody_files.lua
parent1fbb80b14b54c36a3f9aff974a489f7dda0917ea (diff)
parent27bc9300b89d76c5ef59e13653a9d67267830522 (diff)
downloadprosody-8f23723f94af0fd03541b33e0a4e647dfc743d00.tar.gz
prosody-8f23723f94af0fd03541b33e0a4e647dfc743d00.zip
Merge 0.8->trunk
Diffstat (limited to 'tools/migration/migrator/prosody_files.lua')
-rw-r--r--tools/migration/migrator/prosody_files.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/migration/migrator/prosody_files.lua b/tools/migration/migrator/prosody_files.lua
index 4e42f564..be0c49f8 100644
--- a/tools/migration/migrator/prosody_files.lua
+++ b/tools/migration/migrator/prosody_files.lua
@@ -98,7 +98,12 @@ function reader(input)
local x = iter();
if x then
dm.set_data_path(path);
- x.data = assert(dm.load(x.user, x.host, x.store));
+ local err;
+ x.data, err = dm.load(x.user, x.host, x.store);
+ if x.data == nil and err then
+ error(("Error loading data at path %s for %s@%s (%s store)")
+ :format(path, x.user or "<nil>", x.host or "<nil>", x.store or "<nil>"), 0);
+ end
return x;
end
end;