From 574cfd5165a7818a76183cfb871413fb82a9b737 Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Thu, 31 Jul 2025 17:52:16 +0530 Subject: [PATCH] fix: improve error logging in smart album config saving --- .../lib/ui/collections/album/smart_album_people.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mobile/apps/photos/lib/ui/collections/album/smart_album_people.dart b/mobile/apps/photos/lib/ui/collections/album/smart_album_people.dart index 8a8ba2af10..7ee8c8c594 100644 --- a/mobile/apps/photos/lib/ui/collections/album/smart_album_people.dart +++ b/mobile/apps/photos/lib/ui/collections/album/smart_album_people.dart @@ -171,12 +171,16 @@ class _SmartAlbumPeopleState extends State { await dialog.hide(); Navigator.pop(context); - } catch (e) { - _logger.severe(e); + } catch (error, stackTrace) { + _logger.severe( + "Error saving smart album config", + error, + stackTrace, + ); await dialog.hide(); await showGenericErrorDialog( context: context, - error: e, + error: error, ); } }