mirror of
https://github.com/akuker/RASCSI.git
synced 2024-08-20 13:29:27 +00:00
Http error strings makes it clear that they are thrown by the RaSCSI Web Interface (#468)
This commit is contained in:
parent
95808aca6b
commit
014ced6042
@ -33,8 +33,9 @@ def send_pb_command(payload):
|
||||
|
||||
# After failing all attempts, throw a 404 error
|
||||
from flask import abort
|
||||
abort(404, "Failed to connect to RaSCSI at " + str(host) + ":" + str(port) + \
|
||||
" with error: " + error_msg + ". Is the RaSCSI service running?")
|
||||
abort(404, "The RaSCSI Web Interface failed to connect to RaSCSI at " + str(host) + \
|
||||
":" + str(port) + " with error: " + error_msg + \
|
||||
". The RaSCSI service is not running or may have crashed.")
|
||||
|
||||
|
||||
def send_over_socket(sock, payload):
|
||||
@ -70,7 +71,7 @@ def send_over_socket(sock, payload):
|
||||
"RaSCSI may have crashed."
|
||||
)
|
||||
abort(
|
||||
503, "Lost connection to RaSCSI. "
|
||||
503, "The RaSCSI Web Interface lost connection to RaSCSI. "
|
||||
"Please go back and try again. "
|
||||
"If the issue persists, please report a bug."
|
||||
)
|
||||
@ -86,7 +87,7 @@ def send_over_socket(sock, payload):
|
||||
)
|
||||
abort(
|
||||
500,
|
||||
"Did not get a valid response from RaSCSI. "
|
||||
"The RaSCSI Web Interface did not get a valid response from RaSCSI. "
|
||||
"Please go back and try again. "
|
||||
"If the issue persists, please report a bug."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user