Rendering: Use image for server timeout errors (#73462)

This commit is contained in:
Agnès Toulet
2023-08-18 11:50:49 +03:00
committed by GitHub
parent 7a9a869d86
commit 878e94ae25
+1 -1
View File
@@ -216,7 +216,7 @@ func (rs *RenderingService) RenderErrorImage(theme models.Theme, err error) (*Re
theme = models.ThemeDark
}
imgUrl := "public/img/rendering_%s_%s.png"
if errors.Is(err, ErrTimeout) {
if errors.Is(err, ErrTimeout) || errors.Is(err, ErrServerTimeout) {
imgUrl = fmt.Sprintf(imgUrl, "timeout", theme)
} else {
imgUrl = fmt.Sprintf(imgUrl, "error", theme)