From 52dc1a889e77e486422b8862acac36cce8887ebf Mon Sep 17 00:00:00 2001 From: Cyril Danilevski <cyril.danilevski@xfel.eu> Date: Fri, 19 Aug 2022 15:19:14 +0200 Subject: [PATCH] Shorten error message in MyMDC reply MyMDC accepts replies up to 2048 characters, which is too short to feed the whole command, but too long to be helpful. --- webservice/webservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webservice/webservice.py b/webservice/webservice.py index e727eb5d5..c9d521c68 100644 --- a/webservice/webservice.py +++ b/webservice/webservice.py @@ -323,7 +323,7 @@ async def run_action(job_db, cmd, mode, proposal, run, exec_id) -> str: logging.error(Errors.JOB_LAUNCH_FAILED.format(cmd, retcode)) logging.error(f"Failed process stdout:\n%s\nFailed process stderr:\n%s", stdout.decode(errors='replace'), stderr.decode(errors='replace')) - return Errors.JOB_LAUNCH_FAILED.format(cmd, retcode) + return Errors.JOB_LAUNCH_FAILED.format("internal error", retcode) if "DARK" in cmd: message = Success.START_CHAR.format(proposal, run) -- GitLab