From c6795cdb03be87a553c202c128204a2c2af04e12 Mon Sep 17 00:00:00 2001 From: Feichtmeier Date: Tue, 1 Oct 2024 23:09:54 +0200 Subject: [PATCH] fix: onError callback Ref #934 --- lib/local_audio/local_audio_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/local_audio/local_audio_service.dart b/lib/local_audio/local_audio_service.dart index 1a60397a2..7b513fd95 100644 --- a/lib/local_audio/local_audio_service.dart +++ b/lib/local_audio/local_audio_service.dart @@ -254,7 +254,7 @@ FutureOr _readAudiosFromDirectory(String? directory) async { if (directory != null && Directory(directory).existsSync()) { final entities = await Directory(directory) .list(recursive: true, followLinks: false) - .handleError((e) => failedImports.add(e)) + .handleError((e) => failedImports.add(e.toString())) .toList(); for (final e in entities) {