# HG changeset patch # User Kim Alvefur # Date 1627560689 -7200 # Node ID 076ceb405b944b4376508632b5104986265c1f6f # Parent 9bf8a0607d128b18ea9a2246100d4beac8d2144e 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. diff -r 9bf8a0607d12 -r 076ceb405b94 tools/migration/prosody-migrator.lua --- a/tools/migration/prosody-migrator.lua Thu Jul 29 14:10:56 2021 +0200 +++ b/tools/migration/prosody-migrator.lua Thu Jul 29 14:11:29 2021 +0200 @@ -54,6 +54,10 @@ 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