fix: surface nextcloud mail sync errors

This commit is contained in:
Brad Stein 2026-01-18 12:19:28 -03:00
parent b955e591d3
commit 3a0522ad2b

View File

@ -509,5 +509,6 @@ def register(app) -> None:
try:
result = trigger_nextcloud_mail_sync(username, wait=wait)
return jsonify(result)
except Exception:
return jsonify({"error": "failed to sync nextcloud mail"}), 502
except Exception as exc:
message = str(exc).strip() or "failed to sync nextcloud mail"
return jsonify({"error": message}), 502