aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-29 14:11:29 +0200
committerKim Alvefur <zash@zash.se>2021-07-29 14:11:29 +0200
commitd1fe0504e7e7e2b2242316eb5be07099351bb802 (patch)
tree957b2a954335cb02d69ad51c90c000809ffbc3a0 /tools
parentf98cf3899499baf3847ece50b41d4e3a733a674d (diff)
downloadprosody-d1fe0504e7e7e2b2242316eb5be07099351bb802.tar.gz
prosody-d1fe0504e7e7e2b2242316eb5be07099351bb802.zip
migrator: Silence assert in core.moduleapi
The assert triggers because we're not loading the stanza route, because we are unlikely to need it during migration.
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/prosody-migrator.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/migration/prosody-migrator.lua b/tools/migration/prosody-migrator.lua
index 511d0730..26b9ef58 100644
--- a/tools/migration/prosody-migrator.lua
+++ b/tools/migration/prosody-migrator.lua
@@ -54,6 +54,10 @@ do
prosody.config_loaded = true;
startup.load_libraries();
startup.init_http_client();
+ prosody.core_post_stanza = function ()
+ -- silence assert in core.moduleapi
+ error("Attempt to send stanzas from inside migrator.", 0);
+ end
end
-- Command-line parsing