From 057b1fa1ee8a60198c4ecab60e0dbedd2b2b070d Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Mon, 27 May 2024 09:32:14 -0400 Subject: [PATCH] [skip ci] Error log --- playlet-lib/src/components/VideoPlayer/VideoPlayer.bs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index 48131493..73b677d4 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -247,7 +247,9 @@ function OnClose() try m.top.control = "stop" catch error - DialogUtils.ShowDialog(ErrorUtils.Format(error), Tr(Locale.VideoPlayer.ErrorClosingVideo), true) + errorMessage = ErrorUtils.Format(error) + LogError("Error stopping video:", errorMessage) + DialogUtils.ShowDialog(errorMessage, Tr(Locale.VideoPlayer.ErrorClosingVideo), true) end try m.top.content = invalid