diff --git a/lib/ui/collections/device_folders_grid_view_widget.dart b/lib/ui/collections/device_folders_grid_view_widget.dart index 5a3474cae..1f5b8e73c 100644 --- a/lib/ui/collections/device_folders_grid_view_widget.dart +++ b/lib/ui/collections/device_folders_grid_view_widget.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; +import 'package:logging/logging.dart'; import 'package:photos/core/event_bus.dart'; import 'package:photos/db/device_files_db.dart'; import 'package:photos/db/files_db.dart'; @@ -40,6 +41,7 @@ class _DeviceFoldersGridViewWidgetState @override Widget build(BuildContext context) { + final logger = Logger((_DeviceFoldersGridViewWidgetState).toString()); final bool isMigrationDone = LocalSyncService.instance.isDeviceFileMigrationDone(); return Padding( @@ -75,7 +77,8 @@ class _DeviceFoldersGridViewWidgetState itemCount: snapshot.data.length, ); } else if (snapshot.hasError) { - return Text(snapshot.error.toString()); + logger.severe("failed to load device galler", snapshot.error); + return const Text("Failed to load albums"); } else { return const EnteLoadingWidget(); } diff --git a/pubspec.yaml b/pubspec.yaml index 0fd176974..69b285d8d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: ente photos application # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.6.40+370 +version: 0.6.41+371 environment: sdk: '>=2.12.0 <3.0.0'