Skip to content

Commit c0b954a

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

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
@@ -301,7 +301,7 @@ class PreviewViewModel(private val application: Application) : ObservableViewMod
301301
_streamerErrorLiveData.postValue("startStream cancelled")
302302
} catch (t: Throwable) {
303303
Log.e(TAG, "startStream failed", t)
304-
_streamerErrorLiveData.postValue("startStream: ${t.message ?: "Unknown error"}")
304+
_streamerErrorLiveData.postValue("startStream: ${t.message ?: t::class.java.simpleName}")
305305
} finally {
306306
_isTryingConnectionLiveData.postValue(false)
307307
}

0 commit comments

Comments
 (0)