Fix string concatenation for error messages in audio playback handling

This commit is contained in:
Leon Bösche
2026-01-23 23:40:30 +01:00
parent 26cbe83d66
commit bfe2d1d521

View File

@@ -128,8 +128,7 @@ class _AudioPlayerBarState extends State<AudioPlayerBar>
} catch (e) {
setState(() {
_errorMsg =
'Audio playback error: ' +
(e is Exception ? e.toString() : 'Unknown error');
'Audio playback error: ${e is Exception ? e.toString() : 'Unknown error'}';
});
}
});
@@ -155,8 +154,7 @@ class _AudioPlayerBarState extends State<AudioPlayerBar>
setState(() {
_isLoading = false;
_errorMsg =
'Audio load error: ' +
(e is Exception ? e.toString() : 'Unknown error');
'Audio load error: ${e is Exception ? e.toString() : 'Unknown error'}';
});
}
}