diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e69a59c..4c5b4d15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- A link to [https://github.com/iBicha/playlet/issues/400](https://github.com/iBicha/playlet/issues/400) in error dialog + ## [0.24.0] - 2024-06-08 ### Added diff --git a/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs b/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs index a334c9d2..41790f1c 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoContentTask.bs @@ -26,9 +26,16 @@ function VideoContentTask(input as object) as object metadata = response.Json() if not response.IsSuccess() or metadata = invalid + errorMessage = response.ErrorMessage() + knownIssue = `{"error":"This helps protect our community. Learn more"}` + + if errorMessage.InStr(knownIssue) <> -1 + errorMessage += `\nNOTE: Please see the following link for more information about the error\nhttps://github.com/iBicha/playlet/issues/400` + end if + return { success: false - error: response.ErrorMessage() + error: errorMessage } end if