feat(setup_wizard): store error in error log as well

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2023-11-24 17:43:44 +05:30
parent 838a49ebc2
commit 461f479b45
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -83,6 +83,7 @@ def process_setup_stages(stages, user_input, is_background_task=False):
task.get("fn")(task.get("args"))
except Exception:
handle_setup_exception(user_input)
frappe.log_error(title=f"Setup failed: {current_task.get('fail_msg')}")
if not is_background_task:
raise
frappe.publish_realtime(