Skip to content

Commit 7628d4a

Browse files
authored
chore(android): distinguish url and artwork empty string error message (#2235)
1 parent 34146d9 commit 7628d4a

File tree

1 file changed

+1
-1
lines changed
  • android/src/main/java/com/doublesymmetry/trackplayer/utils

1 file changed

+1
-1
lines changed

android/src/main/java/com/doublesymmetry/trackplayer/utils/BundleUtils.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ object BundleUtils {
1616
val obj = data[key]
1717
if (obj is String) {
1818
// Remote or Local Uri
19-
if (obj.trim { it <= ' ' }.isEmpty()) throw RuntimeException("The URL cannot be empty")
19+
if (obj.trim { it <= ' ' }.isEmpty()) throw RuntimeException("$key: The URL cannot be empty")
2020
return Uri.parse(obj as String?)
2121
} else if (obj is Bundle) {
2222
// require/import

0 commit comments

Comments
 (0)