Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo authored Sep 30, 2024
1 parent a6de25f commit 8683e37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal class RecorderWrapper(

fun startRecordingToStream(config: RecordConfig, result: MethodChannel.Result) {
if (config.useLegacy) {
throw Exception("Unsupported feature from legacy recorder.")
throw Exception("Cannot stream audio while using the legacy recorder")
}
startRecording(config, result)
}
Expand Down Expand Up @@ -198,4 +198,4 @@ internal class RecorderWrapper(

override fun onBlScoDisconnected() {
}
}
}

0 comments on commit 8683e37

Please sign in to comment.