Merge pull request #7 from BenHall-1/patch-4

Updated error message on log retrieval
This commit is contained in:
Ryan 2021-01-17 18:42:29 +00:00 committed by GitHub
commit cb0364a30c
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, "Archives expired: Purchase premium for permanent log storage") // 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
} }