Add link to "This helps protect our community" error

This commit is contained in:
Brahim Hadriche committed 2024-06-09 12:47:50 -04:00
1 parent 52f88ac611
commit feb58d5209
2 files changed
+14 -1

No files matched your search

+6
View File
@@ -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/), 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). 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 ## [0.24.0] - 2024-06-08
### Added ### Added
@@ -26,9 +26,16 @@ function VideoContentTask(input as object) as object
metadata = response.Json() metadata = response.Json()
if not response.IsSuccess() or metadata = invalid 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 { return {
success: false success: false
error: response.ErrorMessage() error: errorMessage
} }
end if end if