From 3a0522ad2b635368a38a13e27596a997e52cc799 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sun, 18 Jan 2026 12:19:28 -0300 Subject: [PATCH] fix: surface nextcloud mail sync errors --- backend/atlas_portal/routes/account.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/atlas_portal/routes/account.py b/backend/atlas_portal/routes/account.py index b178afc..f60f9da 100644 --- a/backend/atlas_portal/routes/account.py +++ b/backend/atlas_portal/routes/account.py @@ -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