Skip to content

Commit aeb7759

Browse files
vitalifwolfogre
andcommitted
Update routers/web/repo/actions/view.go
Co-authored-by: Jason Song <[email protected]>
1 parent 44d2068 commit aeb7759

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routers/web/repo/actions/view.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ func Logs(ctx *context_module.Context) {
328328
ctx.Error(http.StatusInternalServerError, err.Error())
329329
return
330330
}
331+
if task.LogExpired {
332+
ctx.Error(http.StatusNotFound, "logs have been cleaned up")
333+
return
334+
}
331335

332336
reader, err := actions.OpenLogs(ctx, task.LogInStorage, task.LogFilename)
333337
if err != nil {

0 commit comments

Comments
 (0)