Log the WebUI server error

This commit is contained in:
cmdr2
2025-07-14 19:11:07 +05:30
parent 4e07966e54
commit 09f7250454

View File

@ -256,7 +256,7 @@ def generate_images(
else: else:
if res.status_code == 500: if res.status_code == 500:
res = res.json() res = res.json()
log.error(f"Server error: {res['message']}") log.error(f"Server error: {res}")
raise Exception(f"{res['message']}. Please check the logs in the command-line window for more details.") raise Exception(f"{res['message']}. Please check the logs in the command-line window for more details.")
raise Exception( raise Exception(