mirror of
https://github.com/akuker/RASCSI.git
synced 2025-02-27 15:30:06 +00:00
Merge pull request #389 from akuker/fix_typo_and_multiline
Fix typo and the multiline strings.
This commit is contained in:
commit
c638127614
@ -427,20 +427,26 @@ def send_over_socket(s, payload):
|
|||||||
chunk = s.recv(min(response_length - bytes_recvd, 2048))
|
chunk = s.recv(min(response_length - bytes_recvd, 2048))
|
||||||
if chunk == b'':
|
if chunk == b'':
|
||||||
from flask import abort
|
from flask import abort
|
||||||
logging.error("Read an empty chunk from the socket. \
|
logging.error(
|
||||||
Socket connection has dropped unexpectedly. \
|
"Read an empty chunk from the socket. "
|
||||||
RaSCSI may have has crashed.")
|
"Socket connection has dropped unexpectedly. "
|
||||||
abort(503, "Lost connection to RaSCSI. \
|
"RaSCSI may have crashed."
|
||||||
Please go back and try again. \
|
)
|
||||||
If the issue persists, please report a bug.")
|
abort(503, "Lost connection to RaSCSI. "
|
||||||
|
"Please go back and try again. "
|
||||||
|
"If the issue persists, please report a bug."
|
||||||
|
)
|
||||||
chunks.append(chunk)
|
chunks.append(chunk)
|
||||||
bytes_recvd = bytes_recvd + len(chunk)
|
bytes_recvd = bytes_recvd + len(chunk)
|
||||||
response_message = b''.join(chunks)
|
response_message = b''.join(chunks)
|
||||||
return response_message
|
return response_message
|
||||||
else:
|
else:
|
||||||
from flask import abort
|
from flask import abort
|
||||||
logging.error("The response from RaSCSI did not contain a protobuf header. \
|
logging.error(
|
||||||
RaSCSI may have crashed.")
|
"The response from RaSCSI did not contain a protobuf header. "
|
||||||
abort(500, "Did not get a valid response from RaSCSI. \
|
"RaSCSI may have crashed."
|
||||||
Please go back and try again. \
|
)
|
||||||
If the issue persists, please report a bug.")
|
abort(500, "Did not get a valid response from RaSCSI. "
|
||||||
|
"Please go back and try again. "
|
||||||
|
"If the issue persists, please report a bug."
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user