Skip to content

Commit 7c16fcd

Browse files
committed
fix(demos): camera: return the exception type in the error live data if message is null
1 parent d562a1e commit 7c16fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/camera/src/main/java/io/github/thibaultbee/streampack/app/ui/main/PreviewViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class PreviewViewModel(private val application: Application) : ObservableViewMod
302302
_streamerErrorLiveData.postValue("startStream cancelled")
303303
} catch (t: Throwable) {
304304
Log.e(TAG, "startStream failed", t)
305-
_streamerErrorLiveData.postValue("startStream: ${t.message ?: "Unknown error"}")
305+
_streamerErrorLiveData.postValue("startStream: ${t.message ?: t::class.java.simpleName}")
306306
} finally {
307307
_isTryingConnectionLiveData.postValue(false)
308308
}

0 commit comments

Comments
 (0)