Update logsview.go

This commit is contained in:
Ben Hall 2021-01-17 18:38:24 +00:00 committed by GitHub
parent 061d28a35d
commit 640be57241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ func LogViewHandler(ctx *gin.Context) {
messages, err := Archiver.Get(guildId, ticketId) messages, err := Archiver.Get(guildId, ticketId)
if err != nil { if err != nil {
if errors.Is(err, archiverclient.ErrExpired) { if errors.Is(err, archiverclient.ErrExpired) {
ctx.String(200, fmt.Sprintf("Failed to retrieve archive - please contact the developers (ErrExpired): %s", err.Error())) // TODO: Actual error page ctx.String(200, "Failed to retrieve archive - please contact the developers quoting error code: ErrExpired") // TODO: Actual error page
return return
} }