music: add stack trace to async load task error

This commit is contained in:
Alexander Capehart 2024-06-28 20:23:10 -06:00
parent 8beb2ef4af
commit c8fa389267
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -438,7 +438,7 @@ constructor(
// to cascade to and cancel all other routines before finally bubbling up
// to the main extractor loop.
logE("MediaStore extraction failed: $e")
incompleteSongs.close(Exception("MediaStore extraction failed: $e"))
incompleteSongs.close(Exception("MediaStore extraction failed: ${e.stackTraceToString()}"))
return@async
}
incompleteSongs.close()
@ -453,7 +453,7 @@ constructor(
tagExtractor.consume(incompleteSongs, completeSongs)
} catch (e: Exception) {
logE("Tag extraction failed: $e")
completeSongs.close(Exception("Tag extraction failed: $e"))
completeSongs.close(Exception("Tag extraction failed: ${e.stackTraceToString()}"))
return@async
}
completeSongs.close()
@ -470,7 +470,7 @@ constructor(
completeSongs, processedSongs, separators, nameFactory)
} catch (e: Exception) {
logE("DeviceLibrary creation failed: $e")
processedSongs.close(Exception("DeviceLibrary creation failed: $e"))
processedSongs.close(Exception("DeviceLibrary creation failed: ${e.stackTraceToString()}"))
return@async Result.failure(e)
}
processedSongs.close()