Fix incorrect error handling in api4.downloadJob (#30410)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
dfca6c211d
Коммит
e549aaffb0
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user