# HG changeset patch # User Kim Alvefur # Date 1680868420 -7200 # Node ID 4ae759490e31ce4e1128b41f2ef1ee8c5dea08a7 # Parent 115ce3ab5b8b5ec9f34b6b29f116bcc65e5d7dda util.prosodyctl.shell: Coerce terminal width to string (for util.stanza) Fixes invalid attribute value: expected string, got number diff -r 115ce3ab5b8b -r 4ae759490e31 util/prosodyctl/shell.lua --- a/util/prosodyctl/shell.lua Fri Apr 07 12:51:26 2023 +0100 +++ b/util/prosodyctl/shell.lua Fri Apr 07 13:53:40 2023 +0200 @@ -30,7 +30,7 @@ end local function send_line(client, line) - client.send(st.stanza("repl-input", { width = term_width() }):text(line)); + client.send(st.stanza("repl-input", { width = tostring(term_width()) }):text(line)); end local function repl(client)