From 4591b26dab05dffd5db04187eb792837d858724c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 9 Apr 2019 15:30:20 +0200 Subject: [PATCH] show all of create rest user command output on failure --- src/rest/creator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rest/creator.js b/src/rest/creator.js index cc87134108..35f20badb2 100644 --- a/src/rest/creator.js +++ b/src/rest/creator.js @@ -59,10 +59,10 @@ module.exports = class RestSessionCreator { try { await exec(allCmds, {cwd: this.cwd, encoding: 'utf-8'}); } catch (result) { - const lines = result.stdout.trim().split('\n'); - const failureReason = lines[lines.length - 1]; - const logs = (await exec("tail -n 100 synapse/installations/consent/homeserver.log")).stdout; - throw new Error(`creating user ${username} failed: ${failureReason}, synapse logs:\n${logs}`); + // const lines = result.stdout.trim().split('\n'); + // const failureReason = lines[lines.length - 1]; + // const logs = (await exec("tail -n 100 synapse/installations/consent/homeserver.log")).stdout; + throw new Error(`creating user ${username} failed, script output:\n ${result.stdout.trim()}`); } }