# HG changeset patch # User Matthew Wild # Date 1738852487 0 # Node ID 7f6f0e47624a63324ac84df1896ad6a4221458f3 # Parent 263ae995bc86f2d7325475da6e9b1c5b06dae40c prosodyctl: reload: Fix detection of whether prosody is running isrunning() returns two values (success, status) and we were only checking the first one. diff -r 263ae995bc86 -r 7f6f0e47624a prosodyctl --- a/prosodyctl Thu Feb 06 14:24:16 2025 +0000 +++ b/prosodyctl Thu Feb 06 14:34:47 2025 +0000 @@ -515,9 +515,11 @@ return shell.shell({ "config", "reload" }); end - service_command_warning("reload"); - - if not prosodyctl.isrunning() then + local ok, running = prosodyctl.isrunning(); + if not ok then + show_message(error_messages[running]); + return 1; + elseif not running then show_message("Prosody is not running"); return 1; end