mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
parent
0cb3dc6211
commit
c8eef5ad4d
11 changed files with 14 additions and 14 deletions
|
|
@ -7,7 +7,7 @@ mixin ErrorLoggerMixin {
|
|||
abstract final Logger logger;
|
||||
|
||||
/// Returns an AsyncValue<T> if the future is successfully executed
|
||||
/// Else, logs the error to the overrided logger and returns an AsyncError<>
|
||||
/// Else, logs the error to the overridden logger and returns an AsyncError<>
|
||||
AsyncFuture<T> guardError<T>(
|
||||
Future<T> Function() fn, {
|
||||
required String errorMessage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue