From 3a0578e0bb67396a9fcee730faa12ad0dc3802c4 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 20 Sep 2021 10:47:00 -0700 Subject: [PATCH] Improve error message --- src/web/ractl_cmds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ractl_cmds.py b/src/web/ractl_cmds.py index 9d97fe40..3e03bbb3 100644 --- a/src/web/ractl_cmds.py +++ b/src/web/ractl_cmds.py @@ -303,7 +303,7 @@ def send_over_socket(s, payload): chunk = s.recv(min(response_length - bytes_recvd, 2048)) if chunk == b'': from flask import abort - logging.error("Read an empty chunk from the socket. Socket connection may have dropped unexpectedly.") + logging.error("Read an empty chunk from the socket. Socket connection may have dropped unexpectedly. Check if RaSCSI has crashed.") abort(503, "Lost connection to RaSCSI. Please go back and try again. If the issue persists, please report a bug.") chunks.append(chunk) bytes_recvd = bytes_recvd + len(chunk)