Fix incorrect error handling in api4.downloadJob (#30410)

Этот коммит содержится в:
Claudio Costa
2025-03-06 15:04:39 +01:00
коммит произвёл GitHub
родитель dfca6c211d
Коммит e549aaffb0
2 изменённых файлов: 25 добавлений и 1 удалений

Просмотреть файл

@@ -122,7 +122,7 @@ func downloadJob(c *Context, w http.ResponseWriter, r *http.Request) {
if !filepath.IsLocal(cleanedExportDir) {
c.Err = model.NewAppError("unableToDownloadJob", "api.job.unable_to_download_job", nil,
"job.Data did not include export_dir, export_dir was malformed, or jobId.zip wasn't found",
http.StatusNotFound).Wrap(err)
http.StatusNotFound)
return
}