From 0423ebf1b1e4d47e430a37a87accd76066c4c290 Mon Sep 17 00:00:00 2001 From: Wessel Bruinsma Date: Mon, 13 Jan 2025 13:51:31 +0100 Subject: [PATCH] Expand on error message --- aurora/foundry/client/api.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/aurora/foundry/client/api.py b/aurora/foundry/client/api.py index deb336b..33b709a 100644 --- a/aurora/foundry/client/api.py +++ b/aurora/foundry/client/api.py @@ -95,7 +95,14 @@ def submit( channel.read(task_id, "input.nc.ack", timeout=120) ack_read = True # Read the acknowledgement only once. except TimeoutError as e: - raise SubmissionError("Could not read acknowledgement of initial condition.") from e + raise SubmissionError( + "Could not read acknowledgement of initial condition. " + "This acknowledgement should be availabe, " + "since the task has been successfully submitted. " + "Something might have gone wrong in the communication " + "between the client and the server. " + "Please the logs and your SAS token should you be using one." + ) from e if task_info.status != previous_status: logger.info(f"Task status update: {task_info.status}")